[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 // forwards
void TheGraphicsLoop();
LONG WINAPI exc_handler(_EXCEPTION_POINTERS* exc_inf); 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) if(tSettings.bDebug || tSettings.bPlayOnline)
{ {
SetUnhandledExceptionFilter(exc_handler); SetUnhandledExceptionFilter(exc_handler);
//dword_1026EB3C = (int)sub_100C4FF0; dwGraphicsLoop = (DWORD)TheGraphicsLoop;
CHAR szArchiveFile[MAX_PATH]; CHAR szArchiveFile[MAX_PATH];
GetModuleFileNameA((HMODULE)hInstance, 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() void InitSettings()
{ {
PCHAR szCmdLine = GetCommandLineA(); PCHAR szCmdLine = GetCommandLineA();