summaryrefslogtreecommitdiffstats
path: root/src/core/main.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-04 01:12:58 +0100
committeraap <aap@papnet.eu>2020-12-04 01:12:58 +0100
commit9714a3776996d97e680cea575967a1d6041f5723 (patch)
tree0810bc2c542a9cf63b49ebbb0f6f6d37f0653755 /src/core/main.cpp
parentMerge branch 'master' of github.com:GTAmodding/re3 (diff)
downloadre3-9714a3776996d97e680cea575967a1d6041f5723.tar
re3-9714a3776996d97e680cea575967a1d6041f5723.tar.gz
re3-9714a3776996d97e680cea575967a1d6041f5723.tar.bz2
re3-9714a3776996d97e680cea575967a1d6041f5723.tar.lz
re3-9714a3776996d97e680cea575967a1d6041f5723.tar.xz
re3-9714a3776996d97e680cea575967a1d6041f5723.tar.zst
re3-9714a3776996d97e680cea575967a1d6041f5723.zip
Diffstat (limited to 'src/core/main.cpp')
-rw-r--r--src/core/main.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/core/main.cpp b/src/core/main.cpp
index ebfa096a..54821979 100644
--- a/src/core/main.cpp
+++ b/src/core/main.cpp
@@ -114,7 +114,7 @@ void DebugMenuPopulate(void);
bool gbPrintMemoryUsage;
#endif
-#ifdef GTA_PS2
+#ifdef PS2_MENU
#define WANT_TO_LOAD TheMemoryCard.m_bWantToLoad
#define FOUND_GAME_TO_LOAD TheMemoryCard.b_FoundRecentSavedGameWantToLoad
#else
@@ -415,7 +415,6 @@ PluginAttach(void)
return TRUE;
}
-// rather different on PS2
static RwBool
Initialise3D(void *param)
{
@@ -1766,7 +1765,7 @@ void SystemInit()
#ifdef GTA_PS2
CFileMgr::InitCd();
- Char modulepath[256];
+ char modulepath[256];
strcpy(modulepath, "cdrom0:\\");
strcat(modulepath, "SYSTEM\\");
@@ -1989,7 +1988,7 @@ void GameInit()
CreateDebugFont();
#ifdef GTA_PS2
- AddIntcHandler(_TODOCONST(2), VBlankCounter, 0);
+ AddIntcHandler(INTC_VBLANK_S, VBlankCounter, 0);
#endif
CameraSize(Scene.camera, NULL, DEFAULT_VIEWWINDOW, DEFAULT_ASPECT_RATIO);
@@ -2031,8 +2030,7 @@ main(int argc, char *argv[])
#ifdef GTA_PS2
int32 r = TheMemoryCard.CheckCardStateAtGameStartUp(CARD_ONE);
- if ( r == CMemoryCard::ERR_DIRNOENTRY || r == CMemoryCard::ERR_NOFORMAT
- && r != CMemoryCard::ERR_OPENNOENTRY && r != CMemoryCard::ERR_NONE )
+ if ( r == CMemoryCard::ERR_DIRNOENTRY || r == CMemoryCard::ERR_NOFORMAT )
{
GameInit();
@@ -2042,6 +2040,8 @@ main(int argc, char *argv[])
CFont::Initialise();
FrontEndMenuManager.DrawMemoryCardStartUpMenus();
+ }else if(r == CMemoryCard::ERR_OPENNOENTRY || r == CMemoryCard::ERR_NONE){
+ // eh?
}
#endif
@@ -2052,12 +2052,18 @@ main(int argc, char *argv[])
InitMPEGPlayer();
+#ifdef GTA_PAL
PlayMPEG("cdrom0:\\MOVIES\\DMAPAL.PSS;1", false);
if (CGame::frenchGame || CGame::germanGame)
PlayMPEG("cdrom0:\\MOVIES\\INTROPAF.PSS;1", true);
else
PlayMPEG("cdrom0:\\MOVIES\\INTROPAL.PSS;1", true);
+#else
+ PlayMPEG("cdrom0:\\MOVIES\\DMANTSC.PSS;1", false);
+
+ PlayMPEG("cdrom0:\\MOVIES\\INTRNTSC.PSS;1", true);
+#endif
ShutdownMPEGPlayer();