mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
- check both upper and lower case versions of file names on non-Windows platforms when looking for addons.
This commit is contained in:
parent
83d56f56d5
commit
70f684d137
1 changed files with 8 additions and 1 deletions
|
@ -676,7 +676,14 @@ static bool CheckAddon(GrpInfo* addon, GrpInfo* main, const char* filename)
|
|||
for (auto& fn : addon->mustcontain)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue