From fd149e50eef0734cd170738e02358fa92da01e63 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 24 Aug 2021 20:56:28 +1000 Subject: [PATCH] - Remove early return from `GrpScan()` that was allowing addons to come through even if they weren't valid. * Raze configured to only search $PROGDIR with a single `worldtour.grp` file would attempt to autoload even if its dependency CRC wasn't present. Attempted to re-arrange function but had mixed results. Removing this early return is what worked under all test cases. --- source/core/searchpaths.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/core/searchpaths.cpp b/source/core/searchpaths.cpp index df4c6e51c..61d3f8565 100644 --- a/source/core/searchpaths.cpp +++ b/source/core/searchpaths.cpp @@ -840,9 +840,6 @@ TArray GrpScan() sortedFileList.Delete(0, findex + 1); sortedGroupList.Delete(0, gindex + 1); - if (sortedGroupList.Size() == 0 || sortedFileList.Size() == 0) - return foundGames; - for (auto entry : sortedFileList) { GetCRC(entry, cachedCRCs);