summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index d1ffbe6b..7b7c28e4 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -90,6 +90,18 @@ void PrintGameVersion();
RwRGBA gColourTop;
+#ifndef DEBUG
+// This is the weirdest shit. In Debug this causes my game to crash in CPed::IsPedInControl shortly after level change
+void
+InitialiseGame(void)
+{
+ LoadingScreen(nil, nil, "loadsc0");
+ CGame::Initialise("DATA\\GTA3.DAT");
+}
+#else
+WRAPPER void InitialiseGame(void) { EAXJMP(0x48E7E0); }
+#endif
+
void
Idle(void *arg)
{
@@ -591,6 +603,25 @@ ResetLoadingScreenBar(void)
NumberOfChunksLoaded = 0.0f;
}
+WRAPPER void
+LoadingIslandScreen(const char *levelName)
+{
+ EAXJMP(0x48DA50);
+}
+
+char*
+GetLevelSplashScreen(int level)
+{
+ static char *splashScreens[4] = {
+ nil,
+ "splash1",
+ "splash2",
+ "splash3",
+ };
+
+ return splashScreens[level];
+}
+
char*
GetRandomSplashScreen(void)
{