mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 18:32:42 +01:00
- added simple PAL/NTSC screens auto-detection
This commit is contained in:
parent
eaa27e3930
commit
d0f21edb94
@ -1798,6 +1798,8 @@ int main(void)
|
|||||||
int redriver2_main(int argc, char** argv)
|
int redriver2_main(int argc, char** argv)
|
||||||
#endif // PSX
|
#endif // PSX
|
||||||
{
|
{
|
||||||
|
char** ScreenNames;
|
||||||
|
|
||||||
char* PALScreenNames[4] = { // [A] don't show publisher logo
|
char* PALScreenNames[4] = { // [A] don't show publisher logo
|
||||||
// "GFX\\SPLASH2.TIM",
|
// "GFX\\SPLASH2.TIM",
|
||||||
// "GFX\\SPLASH3.TIM",
|
// "GFX\\SPLASH3.TIM",
|
||||||
@ -1845,6 +1847,22 @@ int redriver2_main(int argc, char** argv)
|
|||||||
Init_FileSystem();
|
Init_FileSystem();
|
||||||
InitSound();
|
InitSound();
|
||||||
|
|
||||||
|
// [A] REDRIVER 2 version auto-detection
|
||||||
|
// this is the only difference between the files on CD
|
||||||
|
#ifdef DEMO_VERSION
|
||||||
|
ScreenNames = OPMScreenNames;
|
||||||
|
#elif NTSC_VERSION
|
||||||
|
ScreenNames = NTSCScreenNames;
|
||||||
|
|
||||||
|
if (!FileExists(ScreenNames[0]))
|
||||||
|
ScreenNames[0] = PALScreenNames[0];
|
||||||
|
#elif PAL_VERSION
|
||||||
|
ScreenNames = PALScreenNames;
|
||||||
|
|
||||||
|
if (!FileExists(ScreenNames[0]))
|
||||||
|
ScreenNames[0] = NTSCScreenNames[0];
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef PSX
|
#ifndef PSX
|
||||||
// verify installation
|
// verify installation
|
||||||
if (!FileExists("DATA\\FEFONT.BNK") || !FileExists("GFX\\FONT2.FNT"))
|
if (!FileExists("DATA\\FEFONT.BNK") || !FileExists("GFX\\FONT2.FNT"))
|
||||||
@ -1867,14 +1885,7 @@ int redriver2_main(int argc, char** argv)
|
|||||||
{
|
{
|
||||||
//PlayFMV(99); // [A] don't show publisher logo
|
//PlayFMV(99); // [A] don't show publisher logo
|
||||||
|
|
||||||
#ifdef DEMO_VERSION
|
ShowHiresScreens(ScreenNames, 300, 0); // [A]
|
||||||
ShowHiresScreens(OPMScreenNames, 300, 0); // [A]
|
|
||||||
#elif NTSC_VERSION
|
|
||||||
ShowHiresScreens(NTSCScreenNames, 300, 0); // [A]
|
|
||||||
#elif PAL_VERSION
|
|
||||||
ShowHiresScreens(PALScreenNames, 300, 0); // [A]
|
|
||||||
#endif
|
|
||||||
|
|
||||||
PlayFMV(0); // play intro movie
|
PlayFMV(0); // play intro movie
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user