[saco] Update DllMain

This commit is contained in:
RD42 2023-11-24 23:30:07 +08:00
parent 7fe0cca7de
commit 2a34366051

View File

@ -26,6 +26,7 @@ CFileSystem *pFileSystem=NULL;
// forwards
void TheGraphicsLoop();
LONG WINAPI exc_handler(_EXCEPTION_POINTERS* exc_inf);
//----------------------------------------------------
@ -43,7 +44,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
if(tSettings.bDebug || tSettings.bPlayOnline)
{
SetUnhandledExceptionFilter(exc_handler);
//dword_1026EB3C = (int)sub_100C4FF0;
dwGraphicsLoop = (DWORD)TheGraphicsLoop;
CHAR szArchiveFile[MAX_PATH];
GetModuleFileNameA((HMODULE)hInstance, szArchiveFile, MAX_PATH);
@ -78,6 +79,12 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
//----------------------------------------------------
void TheGraphicsLoop()
{
}
//----------------------------------------------------
void InitSettings()
{
PCHAR szCmdLine = GetCommandLineA();