diff options
author | aap <aap@papnet.eu> | 2019-06-28 19:23:28 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-06-28 19:23:28 +0200 |
commit | 48cf8b6629da53443be6b1580ee15ad768c53370 (patch) | |
tree | d6bdeb18130b49096a995789840faf382f68f7ee /src/main.cpp | |
parent | Merge pull request #67 from gennariarmando/master (diff) | |
download | re3-48cf8b6629da53443be6b1580ee15ad768c53370.tar re3-48cf8b6629da53443be6b1580ee15ad768c53370.tar.gz re3-48cf8b6629da53443be6b1580ee15ad768c53370.tar.bz2 re3-48cf8b6629da53443be6b1580ee15ad768c53370.tar.lz re3-48cf8b6629da53443be6b1580ee15ad768c53370.tar.xz re3-48cf8b6629da53443be6b1580ee15ad768c53370.tar.zst re3-48cf8b6629da53443be6b1580ee15ad768c53370.zip |
Diffstat (limited to '')
-rw-r--r-- | src/main.cpp | 31 |
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) { |