2019-05-15 10:52:37 -04:00
|
|
|
#include "common.h"
|
|
|
|
#include "patcher.h"
|
|
|
|
#include "Game.h"
|
2019-07-31 11:54:18 -04:00
|
|
|
#include "main.h"
|
2019-07-24 12:55:43 -04:00
|
|
|
#include "CdStream.h"
|
|
|
|
#include "FileMgr.h"
|
2019-05-15 10:52:37 -04:00
|
|
|
|
2019-06-28 13:23:28 -04:00
|
|
|
eLevelName &CGame::currLevel = *(eLevelName*)0x941514;
|
2019-05-31 05:44:43 -04:00
|
|
|
bool &CGame::bDemoMode = *(bool*)0x5F4DD0;
|
|
|
|
bool &CGame::nastyGame = *(bool*)0x5F4DD4;
|
2019-06-01 23:00:38 -04:00
|
|
|
bool &CGame::frenchGame = *(bool*)0x95CDCB;
|
|
|
|
bool &CGame::germanGame = *(bool*)0x95CD1E;
|
|
|
|
bool &CGame::noProstitutes = *(bool*)0x95CDCF;
|
2019-06-12 20:35:26 -04:00
|
|
|
bool &CGame::playingIntro = *(bool*)0x95CDC2;
|
2019-06-17 04:30:02 -04:00
|
|
|
char *CGame::aDatFile = (char*)0x773A48;
|
2019-05-31 05:44:43 -04:00
|
|
|
|
2019-07-24 12:55:43 -04:00
|
|
|
|
|
|
|
bool
|
|
|
|
CGame::InitialiseOnceBeforeRW(void)
|
|
|
|
{
|
|
|
|
CFileMgr::Initialise();
|
|
|
|
CdStreamInit(MAX_CDCHANNELS);
|
|
|
|
ValidateVersion();
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2019-06-28 13:23:28 -04:00
|
|
|
WRAPPER void CGame::Initialise(const char *datFile) { EAXJMP(0x48BED0); }
|
2019-05-31 05:44:43 -04:00
|
|
|
WRAPPER void CGame::Process(void) { EAXJMP(0x48C850); }
|
2019-07-24 12:55:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
2019-06-16 18:16:38 -04:00
|
|
|
WRAPPER bool CGame::InitialiseRenderWare(void) { EAXJMP(0x48BBA0); }
|
2019-05-31 13:02:26 -04:00
|
|
|
WRAPPER void CGame::ShutdownRenderWare(void) { EAXJMP(0x48BCB0); }
|
|
|
|
WRAPPER void CGame::FinalShutdown(void) { EAXJMP(0x48BEC0); }
|
2019-06-01 23:00:38 -04:00
|
|
|
WRAPPER void CGame::ShutDown(void) { EAXJMP(0x48C3A0); }
|
|
|
|
WRAPPER void CGame::ShutDownForRestart(void) { EAXJMP(0x48C6B0); }
|
|
|
|
WRAPPER void CGame::InitialiseWhenRestarting(void) { EAXJMP(0x48C740); }
|
2019-06-16 18:16:38 -04:00
|
|
|
WRAPPER bool CGame::InitialiseOnceAfterRW(void) { EAXJMP(0x48BD50); }
|