aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/menu.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-07-31 00:20:09 +0530
committerEugene Sandulenko2019-09-03 17:17:30 +0200
commitc1d2468f075698fddd9cb0f825d6ee1e0752b3bd (patch)
tree83b236a6902ace983ebe76977be1439a565c4c1d /engines/hdb/menu.cpp
parentd93c6ec72466e27ffa390c0f6f3933d2ed6640b1 (diff)
downloadscummvm-rg350-c1d2468f075698fddd9cb0f825d6ee1e0752b3bd.tar.gz
scummvm-rg350-c1d2468f075698fddd9cb0f825d6ee1e0752b3bd.tar.bz2
scummvm-rg350-c1d2468f075698fddd9cb0f825d6ee1e0752b3bd.zip
HDB: Section off PPC-specific code
Diffstat (limited to 'engines/hdb/menu.cpp')
-rw-r--r--engines/hdb/menu.cpp42
1 files changed, 29 insertions, 13 deletions
diff --git a/engines/hdb/menu.cpp b/engines/hdb/menu.cpp
index 3158e789d6..5f8297f0d4 100644
--- a/engines/hdb/menu.cpp
+++ b/engines/hdb/menu.cpp
@@ -147,20 +147,32 @@ Menu::~Menu() {
}
bool Menu::init() {
- _gCheckEmpty = g_hdb->_gfx->loadPic(G_CHECK_EMPTY);
- _gCheckOff = g_hdb->_gfx->loadPic(G_CHECK_OFF);
- _gCheckOn = g_hdb->_gfx->loadPic(G_CHECK_ON);
- _gCheckLeft = g_hdb->_gfx->loadPic(G_CHECK_LEFT);
- _gCheckRight = g_hdb->_gfx->loadPic(G_CHECK_RIGHT);
- _contArrowUp = g_hdb->_gfx->loadPic(CTRL_ARROWUP);
- _contArrowDown = g_hdb->_gfx->loadPic(CTRL_ARROWDN);
- _contArrowLeft = g_hdb->_gfx->loadPic(CTRL_ARROWLEFT);
- _contArrowRight = g_hdb->_gfx->loadPic(CTRL_ARROWRIGHT);
- _contAssign = g_hdb->_gfx->loadPic(CTRL_ASSIGN);
+ if (g_hdb->isPPC()) {
+ if (g_hdb->isDemo()) {
+ warning("STUB: Load DEMOTITLESCREEN");
+ warning("STUB: Load PIC_HANDANGO");
+ }
+ else
+ _hdbLogoScreen = g_hdb->_gfx->loadPic(TITLESCREEN);
- _warpPlaque = g_hdb->_gfx->loadPic(WARP_PLAQUE);
- _hdbLogoScreen = g_hdb->_gfx->loadPic(TITLESCREEN);
+
+ } else {
+ _gCheckEmpty = g_hdb->_gfx->loadPic(G_CHECK_EMPTY);
+ _gCheckOff = g_hdb->_gfx->loadPic(G_CHECK_OFF);
+ _gCheckOn = g_hdb->_gfx->loadPic(G_CHECK_ON);
+ _gCheckLeft = g_hdb->_gfx->loadPic(G_CHECK_LEFT);
+ _gCheckRight = g_hdb->_gfx->loadPic(G_CHECK_RIGHT);
+
+ _contArrowUp = g_hdb->_gfx->loadPic(CTRL_ARROWUP);
+ _contArrowDown = g_hdb->_gfx->loadPic(CTRL_ARROWDN);
+ _contArrowLeft = g_hdb->_gfx->loadPic(CTRL_ARROWLEFT);
+ _contArrowRight = g_hdb->_gfx->loadPic(CTRL_ARROWRIGHT);
+ _contAssign = g_hdb->_gfx->loadPic(CTRL_ASSIGN);
+
+ _warpPlaque = g_hdb->_gfx->loadPic(WARP_PLAQUE);
+ _hdbLogoScreen = g_hdb->_gfx->loadPic(TITLESCREEN);
+ }
return true;
}
@@ -1532,7 +1544,11 @@ void Menu::drawToggle(int x, int y, bool flag) {
}
void Menu::drawWarpScreen() {
- _warpPlaque->drawMasked(centerPic(_warpPlaque), 64);
+ if (g_hdb->isPPC()) {
+ g_hdb->_gfx->setCursor(0, kWarpY + 176);
+ g_hdb->_gfx->centerPrint("MONKEYSTONE WARP ZONE!");
+ } else
+ _warpPlaque->drawMasked(centerPic(_warpPlaque), 64);
}
} // End of Namespace