mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-11-23 14:29:52 +00:00
[saco] Implement LaunchMonitor()
* Adds `CGame::StartGame()` stub
This commit is contained in:
parent
4daffd4d83
commit
fc358a2996
@ -76,6 +76,13 @@ void CGame::InitGame()
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CGame::StartGame()
|
||||
{
|
||||
// TODO: CGame::StartGame() .text:100A08E0
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CGame::sub_100A0060()
|
||||
{
|
||||
// No indication for __thiscall, maybe not part of CGame
|
||||
|
@ -36,6 +36,7 @@ public:
|
||||
|
||||
HWND GetMainWindowHwnd() { return *(HWND *)ADDR_HWND; };
|
||||
|
||||
void StartGame();
|
||||
void InitGame();
|
||||
|
||||
CGame();
|
||||
|
@ -34,6 +34,27 @@ CFileSystem *pFileSystem=NULL;
|
||||
|
||||
void TheGraphicsLoop();
|
||||
LONG WINAPI exc_handler(_EXCEPTION_POINTERS* exc_inf);
|
||||
void sub_1009DD50();
|
||||
|
||||
// polls the game until it's able to run.
|
||||
void LaunchMonitor(PVOID v)
|
||||
{
|
||||
if(pGame)
|
||||
pGame->InitGame();
|
||||
|
||||
while(1) {
|
||||
if(*(PDWORD)ADDR_ENTRY == 7) {
|
||||
sub_1009DD50();
|
||||
pGame->StartGame();
|
||||
break;
|
||||
}
|
||||
else {
|
||||
Sleep(5);
|
||||
}
|
||||
}
|
||||
|
||||
ExitThread(0);
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
@ -70,7 +91,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
|
||||
pGame = new CGame();
|
||||
|
||||
//_beginthread((int)sub_100C3A80, 0, 0);
|
||||
_beginthread(LaunchMonitor,0,NULL);
|
||||
}
|
||||
}
|
||||
else if(DLL_PROCESS_DETACH==fdwReason)
|
||||
|
Loading…
Reference in New Issue
Block a user