summaryrefslogtreecommitdiffstats
path: root/src/core/Game.cpp
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2019-07-24 18:55:43 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2019-07-24 18:55:43 +0200
commitb4ecb3e3dad654e01d0ceb4c359721650dda425b (patch)
tree27cfc6fb58ec53080d9c4850f13b8b97ad681b13 /src/core/Game.cpp
parentMerge pull request #1 from GTAmodding/master (diff)
downloadre3-b4ecb3e3dad654e01d0ceb4c359721650dda425b.tar
re3-b4ecb3e3dad654e01d0ceb4c359721650dda425b.tar.gz
re3-b4ecb3e3dad654e01d0ceb4c359721650dda425b.tar.bz2
re3-b4ecb3e3dad654e01d0ceb4c359721650dda425b.tar.lz
re3-b4ecb3e3dad654e01d0ceb4c359721650dda425b.tar.xz
re3-b4ecb3e3dad654e01d0ceb4c359721650dda425b.tar.zst
re3-b4ecb3e3dad654e01d0ceb4c359721650dda425b.zip
Diffstat (limited to '')
-rw-r--r--src/core/Game.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/core/Game.cpp b/src/core/Game.cpp
index cbd55c48..e07106ce 100644
--- a/src/core/Game.cpp
+++ b/src/core/Game.cpp
@@ -1,6 +1,9 @@
#include "common.h"
#include "patcher.h"
#include "Game.h"
+#include "Main.h"
+#include "CdStream.h"
+#include "FileMgr.h"
eLevelName &CGame::currLevel = *(eLevelName*)0x941514;
bool &CGame::bDemoMode = *(bool*)0x5F4DD0;
@@ -11,9 +14,21 @@ bool &CGame::noProstitutes = *(bool*)0x95CDCF;
bool &CGame::playingIntro = *(bool*)0x95CDC2;
char *CGame::aDatFile = (char*)0x773A48;
+
+bool
+CGame::InitialiseOnceBeforeRW(void)
+{
+ CFileMgr::Initialise();
+ CdStreamInit(MAX_CDCHANNELS);
+ ValidateVersion();
+ return true;
+}
+
WRAPPER void CGame::Initialise(const char *datFile) { EAXJMP(0x48BED0); }
WRAPPER void CGame::Process(void) { EAXJMP(0x48C850); }
-WRAPPER bool CGame::InitialiseOnceBeforeRW(void) { EAXJMP(0x48BB80); }
+
+
+
WRAPPER bool CGame::InitialiseRenderWare(void) { EAXJMP(0x48BBA0); }
WRAPPER void CGame::ShutdownRenderWare(void) { EAXJMP(0x48BCB0); }
WRAPPER void CGame::FinalShutdown(void) { EAXJMP(0x48BEC0); }