Loaders: Look for PSP/GAME/ not /PSP/GAME/.

Because upcoming Path changes will affect path string comparisons.
This commit is contained in:
Henrik Rydgård
2021-05-09 17:50:59 -07:00
committed by Unknown W. Brackets
parent ac68dac029
commit cc3868db97
3 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -337,7 +337,7 @@ bool DirectoryFileHandle::Open(const std::string &basePath, std::string &fileNam
#endif
// Try to detect reads/writes to PSP/GAME to avoid them in replays.
if (fullName.find("/PSP/GAME/") != fullName.npos || fullName.find("\\PSP\\GAME\\") != fullName.npos) {
if (fullName.find("PSP/GAME/") != fullName.npos || fullName.find("PSP\\GAME\\") != fullName.npos) {
inGameDir_ = true;
}