Skip to content

Commit 6deccd7

Browse files
committed
refactor(big): use endsWithNoCase for INIZH.big path matching
1 parent 95cfca1 commit 6deccd7

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Core/GameEngineDevice/Source/StdDevice/Common/StdBIGFileSystem.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,8 @@ Bool StdBIGFileSystem::loadBigFilesFromDirectory(AsciiString dir, AsciiString fi
216216
FilenameListIter it = filenameList.begin();
217217
while (it != filenameList.end()) {
218218
#if RTS_ZEROHOUR
219-
AsciiString filePath = (*it);
220-
filePath.toLower();
221219
// TheSuperHackers @fix bobtista 18/11/2025 Skip duplicate INIZH.big in Data\INI to prevent CRC mismatches on EA App/Origin installs
222-
if (strstr(filePath.str(), "data\\ini\\inizh.big") != NULL || strstr(filePath.str(), "data/ini/inizh.big") != NULL) {
220+
if ((*it).endsWithNoCase("data\\ini\\inizh.big") || (*it).endsWithNoCase("data/ini/inizh.big")) {
223221
it++;
224222
continue;
225223
}

Core/GameEngineDevice/Source/Win32Device/Common/Win32BIGFileSystem.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,8 @@ Bool Win32BIGFileSystem::loadBigFilesFromDirectory(AsciiString dir, AsciiString
217217
FilenameListIter it = filenameList.begin();
218218
while (it != filenameList.end()) {
219219
#if RTS_ZEROHOUR
220-
AsciiString filePath = (*it);
221-
filePath.toLower();
222220
// TheSuperHackers @fix bobtista 18/11/2025 Skip duplicate INIZH.big in Data\INI to prevent CRC mismatches on EA App/Origin installs
223-
if (strstr(filePath.str(), "data\\ini\\inizh.big") != NULL || strstr(filePath.str(), "data/ini/inizh.big") != NULL) {
221+
if ((*it).endsWithNoCase("data\\ini\\inizh.big") || (*it).endsWithNoCase("data/ini/inizh.big")) {
224222
it++;
225223
continue;
226224
}

0 commit comments

Comments
 (0)