mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-11-23 22:39:39 +00:00
[saco] Update DllMain
This commit is contained in:
parent
7fe0cca7de
commit
2a34366051
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user