summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2019-10-21 15:47:08 +0200
committerSergeanur <s.anureev@yandex.ua>2019-10-21 15:47:08 +0200
commit8baf4106694fa5b9a14614230dfa8dcb578c857a (patch)
treedda0074a82762bd3d334df4d197b683b2d7addff /src/core
parentMerge pull request #246 from Sergeanur/Pools (diff)
downloadre3-8baf4106694fa5b9a14614230dfa8dcb578c857a.tar
re3-8baf4106694fa5b9a14614230dfa8dcb578c857a.tar.gz
re3-8baf4106694fa5b9a14614230dfa8dcb578c857a.tar.bz2
re3-8baf4106694fa5b9a14614230dfa8dcb578c857a.tar.lz
re3-8baf4106694fa5b9a14614230dfa8dcb578c857a.tar.xz
re3-8baf4106694fa5b9a14614230dfa8dcb578c857a.tar.zst
re3-8baf4106694fa5b9a14614230dfa8dcb578c857a.zip
Diffstat (limited to '')
-rw-r--r--src/core/Game.cpp17
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