- 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.
This commit is contained in:
Mitchell Richters 2021-08-24 20:56:28 +10:00
parent 271eb16833
commit fd149e50ee

View file

@ -840,9 +840,6 @@ TArray<GrpEntry> GrpScan()
sortedFileList.Delete(0, findex + 1); sortedFileList.Delete(0, findex + 1);
sortedGroupList.Delete(0, gindex + 1); sortedGroupList.Delete(0, gindex + 1);
if (sortedGroupList.Size() == 0 || sortedFileList.Size() == 0)
return foundGames;
for (auto entry : sortedFileList) for (auto entry : sortedFileList)
{ {
GetCRC(entry, cachedCRCs); GetCRC(entry, cachedCRCs);