This commit is contained in:
momo5502 2016-01-02 18:28:47 +01:00
parent ddfe3cd3cc
commit 31104a7537
3 changed files with 13 additions and 1 deletions

View File

@ -23,8 +23,18 @@ namespace Components
} }
} }
int FileSystem::ExecIsFSStub(const char* execFilename)
{
return !File(execFilename).Exists();
}
FileSystem::FileSystem() FileSystem::FileSystem()
{ {
// Filesystem config checks
Utils::Hook(0x6098FD, FileSystem::ExecIsFSStub, HOOK_CALL).Install()->Quick();
// exec whitelist removal (YAYFINITY WARD)
Utils::Hook::Nop(0x609685, 5);
Utils::Hook::Nop(0x60968C, 2);
} }
} }

View File

@ -23,5 +23,8 @@ namespace Components
FileSystem(); FileSystem();
const char* GetName() { return "FileSystem"; }; const char* GetName() { return "FileSystem"; };
private:
static int ExecIsFSStub(const char* execFilename);
}; };
} }

View File

@ -272,7 +272,6 @@ namespace Components
} }
else else
{ {
Dvar::Var("xblive_privatematch").Set(1); Dvar::Var("xblive_privatematch").Set(1);
Game::Menus_CloseAll(Game::uiContext); Game::Menus_CloseAll(Game::uiContext);