diff --git a/r5dev/filesystem/basefilesystem.cpp b/r5dev/filesystem/basefilesystem.cpp index 49161a59..1a9d6d26 100644 --- a/r5dev/filesystem/basefilesystem.cpp +++ b/r5dev/filesystem/basefilesystem.cpp @@ -66,13 +66,19 @@ bool CBaseFileSystem::VCheckDisk(const char* pszFilePath) } std::string svFilePath = ConvertToWinPath(pszFilePath); - if (svFilePath.find("\\*\\") != string::npos) { // Erase '//*/'. svFilePath.erase(0, 4); } + fs::path filePath(svFilePath); + if (filePath.is_absolute()) + { + // Skip absolute file paths. + return false; + } + // TODO: obtain 'mod' SearchPath's instead. svFilePath.insert(0, "platform\\");