2023-10-24 10:16:45 -04:00
|
|
|
#include "fastfile.h"
|
|
|
|
#include "game_inc.h"
|
|
|
|
|
|
|
|
int DB_LoadXFile_Detour(const char* zoneName, uintptr_t zoneMem, uintptr_t assetList, int zoneFlags, bool wasPaused, int failureMode, uintptr_t outSignature)
|
|
|
|
{
|
|
|
|
return db_loadxfile.stub<int>(zoneName, zoneMem, assetList, zoneFlags, wasPaused, failureMode, outSignature);
|
|
|
|
}
|
|
|
|
|
|
|
|
int DB_PollFastfileState_Detour(const char* zoneName)
|
|
|
|
{
|
|
|
|
if (strcmp(zoneName, "mp_donetsk_cg_ls_tr") == 0)
|
|
|
|
{
|
|
|
|
return 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
//printf("%s\n", zoneName);
|
|
|
|
|
|
|
|
return db_pollfastfilestate.stub<int>(zoneName);
|
2023-10-25 13:26:27 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
bool DB_CheckXFileVersion_Detour()
|
|
|
|
{
|
|
|
|
return true;
|
2023-10-24 10:16:45 -04:00
|
|
|
}
|