From 70f684d1377250201bebf61809d05d9932081276 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 1 Mar 2020 07:40:13 +0100 Subject: [PATCH] - check both upper and lower case versions of file names on non-Windows platforms when looking for addons. --- source/common/searchpaths.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/common/searchpaths.cpp b/source/common/searchpaths.cpp index 952362a76..4b2a53cd4 100644 --- a/source/common/searchpaths.cpp +++ b/source/common/searchpaths.cpp @@ -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; }