mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fix crash on older windows versions
This commit is contained in:
parent
596682c483
commit
15e01fe309
@ -119,7 +119,7 @@ FileHandle_t CBaseFileSystem::ReadFromVPK(CBaseFileSystem* pFileSystem, std::int
|
||||
// TODO: obtain 'mod' SearchPath's instead.
|
||||
svFilePath.insert(0, "platform\\");
|
||||
|
||||
if (::FileExists(svFilePath.c_str()) || ::FileExists(pszFilePath))
|
||||
if (::FileExists(svFilePath.c_str()) /*|| ::FileExists(pszFilePath)*/)
|
||||
{
|
||||
*pResults = -1;
|
||||
return (void*)pResults;
|
||||
@ -147,7 +147,7 @@ bool CBaseFileSystem::ReadFromCache(CBaseFileSystem* pFileSystem, char* pszFileP
|
||||
// TODO: obtain 'mod' SearchPath's instead.
|
||||
svFilePath.insert(0, "platform\\");
|
||||
|
||||
if (::FileExists(svFilePath.c_str()) || ::FileExists(pszFilePath))
|
||||
if (::FileExists(svFilePath.c_str()) /*|| ::FileExists(pszFilePath)*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user