- check both upper and lower case versions of file names on non-Windows platforms when looking for addons.

This commit is contained in:
Christoph Oelckers 2020-03-01 07:40:13 +01:00
parent 83d56f56d5
commit 70f684d137

View file

@ -676,7 +676,14 @@ static bool CheckAddon(GrpInfo* addon, GrpInfo* main, const char* filename)
for (auto& fn : addon->mustcontain) for (auto& fn : addon->mustcontain)
{ {
FString check = path + fn; FString check = path + fn;
if (!FileExists(check)) return false; if (FileExists(check)) continue;
#if !defined _WIN32
check = check.MakeLower();
if (FileExists(check)) continue;
check = check.MakeUpper();
if (FileExists(check)) continue;
#endif
return false;
} }
return true; return true;
} }