mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-09-18 07:48:04 +02:00
Revert "Also load files from main directory"
This reverts commit ac566d73aa
.
This commit is contained in:
@@ -61,19 +61,11 @@ FileHandle_t HCBaseFileSystem_ReadFromVPK(void* pVpk, std::int64_t* pResults, ch
|
|||||||
{
|
{
|
||||||
// Erase '//*/'.
|
// Erase '//*/'.
|
||||||
svFilePath.erase(0, 4);
|
svFilePath.erase(0, 4);
|
||||||
|
|
||||||
// Check if file exist in the main game folder.
|
|
||||||
if (FileExists(svFilePath.c_str()))
|
|
||||||
{
|
|
||||||
*pResults = -1;
|
|
||||||
return (void*)pResults;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: obtain 'mod' SearchPath's instead.
|
// TODO: obtain 'mod' SearchPath's instead.
|
||||||
svFilePath.insert(0, "platform\\");
|
svFilePath.insert(0, "platform\\");
|
||||||
|
|
||||||
// Check if file exist in 'mod' folders.
|
|
||||||
if (FileExists(svFilePath.c_str()) /*|| FileExists(pszFilePath)*/)
|
if (FileExists(svFilePath.c_str()) /*|| FileExists(pszFilePath)*/)
|
||||||
{
|
{
|
||||||
*pResults = -1;
|
*pResults = -1;
|
||||||
@@ -93,19 +85,12 @@ bool HCBaseFileSystem_ReadFromCache(void* pFileSystem, char* pszFilePath, void*
|
|||||||
{
|
{
|
||||||
// Erase '//*/'.
|
// Erase '//*/'.
|
||||||
svFilePath.erase(0, 4);
|
svFilePath.erase(0, 4);
|
||||||
|
|
||||||
// Check if file exist in the main game folder.
|
|
||||||
if (FileExists(svFilePath.c_str()))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: obtain 'mod' SearchPath's instead.
|
// TODO: obtain 'mod' SearchPath's instead.
|
||||||
svFilePath.insert(0, "platform\\");
|
svFilePath.insert(0, "platform\\");
|
||||||
|
|
||||||
// Check if file exist in 'mod' folders.
|
if (FileExists(svFilePath.c_str()) /*|| FileExists(pszFilePath)*/)
|
||||||
if (FileExists(svFilePath.c_str()))
|
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user