mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 08:25:35 +00:00
PEGASUS: Add Windows demo support
This commit is contained in:
parent
918920b47a
commit
5c5b19a77b
@ -62,6 +62,10 @@ bool PegasusEngine::isOldDemo() const {
|
||||
return isDemo() && !isDVD();
|
||||
}
|
||||
|
||||
bool PegasusEngine::isWindows() const {
|
||||
return _gameDescription->desc.platform == Common::kPlatformWindows;
|
||||
}
|
||||
|
||||
} // End of namespace Pegasus
|
||||
|
||||
static const PlainGameDescriptor pegasusGames[] = {
|
||||
@ -109,6 +113,18 @@ static const PegasusGameDescription gameDescriptions[] = {
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
{
|
||||
"pegasus",
|
||||
"DVD Demo",
|
||||
AD_ENTRY1s("JMP PP Resources", "d0fcda50dc75c7a81ae314e6a813f4d2", 93495),
|
||||
Common::EN_ANY,
|
||||
Common::kPlatformWindows,
|
||||
ADGF_MACRESFORK | ADGF_DEMO | GF_DVD,
|
||||
GUIO1(GUIO_NOLAUNCHLOAD)
|
||||
},
|
||||
},
|
||||
|
||||
{ AD_TABLE_END_MARKER }
|
||||
};
|
||||
|
||||
|
@ -149,10 +149,14 @@ MainMenu::MainMenu() : GameMenu(kMainMenuID), _menuBackground(0), _overviewButto
|
||||
|
||||
bool isDemo = ((PegasusEngine *)g_engine)->isDemo();
|
||||
|
||||
if (isDemo)
|
||||
_menuBackground.initFromPICTFile("Images/Demo/DemoMenu.pict");
|
||||
else
|
||||
if (isDemo) {
|
||||
if (((PegasusEngine *)g_engine)->isWindows())
|
||||
_menuBackground.initFromPICTFile("Images/Demo/DemoMenuPC.pict");
|
||||
else
|
||||
_menuBackground.initFromPICTFile("Images/Demo/DemoMenu.pict");
|
||||
} else {
|
||||
_menuBackground.initFromPICTFile("Images/Main Menu/MainMenu.mac");
|
||||
}
|
||||
_menuBackground.setDisplayOrder(0);
|
||||
_menuBackground.startDisplaying();
|
||||
_menuBackground.show();
|
||||
|
@ -98,6 +98,7 @@ public:
|
||||
bool isDVD() const;
|
||||
bool isDVDDemo() const;
|
||||
bool isOldDemo() const;
|
||||
bool isWindows() const;
|
||||
void addIdler(Idler *idler);
|
||||
void removeIdler(Idler *idler);
|
||||
void addTimeBase(TimeBase *timeBase);
|
||||
|
Loading…
x
Reference in New Issue
Block a user