This commit is contained in:
Diavolo
2021-07-18 20:51:33 +02:00
parent b5976ff20a
commit 97032e9d46
4 changed files with 5 additions and 11 deletions

View File

@ -844,7 +844,7 @@ namespace Components
Command::Add("quit", [](Command::Params*)
{
ZoneBuilder::Quit();
Game::Com_Quitf_t();
});
Command::Add("error", [](Command::Params*)
@ -921,12 +921,6 @@ namespace Components
return 0;
}
void ZoneBuilder::Quit()
{
//TerminateProcess(GetCurrentProcess(), 0);
ExitProcess(0);
}
void ZoneBuilder::HandleError(int level, const char* format, ...)
{
char buffer[256] = { 0 };
@ -1088,9 +1082,6 @@ namespace Components
// set new entry point
Utils::Hook(0x4513DA, ZoneBuilder::EntryPoint, HOOK_JUMP).install()->quick();
// set quit handler
Utils::Hook(0x4D4000, ZoneBuilder::Quit, HOOK_JUMP).install()->quick();
// handle com_error calls
Utils::Hook(0x4B22D0, ZoneBuilder::HandleError, HOOK_JUMP).install()->quick();

View File

@ -138,7 +138,6 @@ namespace Components
static std::string FindMaterialByTechnique(const std::string& name);
static int __stdcall EntryPoint(HINSTANCE /*hInstance*/, HINSTANCE /*hPrevInstance*/, LPSTR /*lpCmdLine*/, int /*nShowCmd*/);
static void Quit();
static void HandleError(int level, const char* format, ...);
static void SoftErrorAssetOverflow();