diff options
author | Sergeanur <s.anureev@yandex.ua> | 2019-10-21 16:47:08 +0300 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2019-10-21 16:47:08 +0300 |
commit | 8baf4106694fa5b9a14614230dfa8dcb578c857a (patch) | |
tree | dda0074a82762bd3d334df4d197b683b2d7addff /src/core | |
parent | 4844b3a3f8037b379654bb8109050d0adbc94ae7 (diff) |
CGame::FinalShutdown
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/Game.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/core/Game.cpp b/src/core/Game.cpp index 3ac4acb0..00d50fa8 100644 --- a/src/core/Game.cpp +++ b/src/core/Game.cpp @@ -48,6 +48,7 @@ #include "TimeCycle.h" #include "TrafficLights.h" #include "Train.h" +#include "TxdStore.h" #include "User.h" #include "WaterCannon.h" #include "Weapon.h" @@ -175,14 +176,26 @@ void CGame::ReloadIPLs(void) CTimer::Update(); } +#if 0 +WRAPPER void CGame::FinalShutdown(void) { EAXJMP(0x48BEC0); } +#else +void +CGame::FinalShutdown(void) +{ + CTxdStore::Shutdown(); + CPedStats::Shutdown(); + CdStreamShutdown(); +} +#endif + WRAPPER bool CGame::InitialiseRenderWare(void) { EAXJMP(0x48BBA0); } WRAPPER void CGame::ShutdownRenderWare(void) { EAXJMP(0x48BCB0); } -WRAPPER void CGame::FinalShutdown(void) { EAXJMP(0x48BEC0); } WRAPPER void CGame::ShutDown(void) { EAXJMP(0x48C3A0); } WRAPPER void CGame::ShutDownForRestart(void) { EAXJMP(0x48C6B0); } WRAPPER void CGame::InitialiseWhenRestarting(void) { EAXJMP(0x48C740); } WRAPPER bool CGame::InitialiseOnceAfterRW(void) { EAXJMP(0x48BD50); } STARTPATCHES -InjectHook(0x48C850, CGame::Process, PATCH_JUMP); + InjectHook(0x48C850, CGame::Process, PATCH_JUMP); + InjectHook(0x48BEC0, CGame::FinalShutdown, PATCH_JUMP); ENDPATCHES |