From 15e01fe3091652c18522cdd95aa47e487c475a62 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 16 May 2022 02:00:46 +0200 Subject: [PATCH] Fix crash on older windows versions --- r5dev/filesystem/basefilesystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r5dev/filesystem/basefilesystem.cpp b/r5dev/filesystem/basefilesystem.cpp index 3b2fadbe..65e88e26 100644 --- a/r5dev/filesystem/basefilesystem.cpp +++ b/r5dev/filesystem/basefilesystem.cpp @@ -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; }