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 authored and Unknown W. Brackets committed 2021-05-09 17:50:59 -07:00
1 parent ac68dac029
commit cc3868db97
3 files changed
+12 -6

No files matched your search

+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;
}