TITANIC: Enable initial copyright screen

This commit is contained in:
Paul Gilbert 2017-06-09 19:40:35 -04:00
parent 6814b1e163
commit 1342a45321
2 changed files with 12 additions and 4 deletions

View File

@ -54,18 +54,16 @@ void CMainGameWindow::applicationStarting() {
CScreenManager *screenManager = CScreenManager::setCurrent();
screenManager->setMode(640, 480, 16, 0, true);
#if 0
// Show the initial copyright & info screen for the game
if (gDebugLevel <= 0) {
if (!isLoadingFromLauncher()) {
Image image;
image.load("Bitmap/TITANIC");
_vm->_screen->blitFrom(image, Point(
SCREEN_WIDTH / 2 - image.w / 2,
SCREEN_HEIGHT / 2 - image.h / 2
));
));
_vm->_events->sleep(5000);
}
#endif
// Set up the game project, and get game slot
int saveSlot = getSavegameSlot();
@ -106,6 +104,10 @@ int CMainGameWindow::getSavegameSlot() {
return selectSavegame();
}
bool CMainGameWindow::isLoadingFromLauncher() const {
return ConfMan.hasKey("save_slot");
}
int CMainGameWindow::selectSavegame() {
// If the user selected a savegame from the launcher, return it
if (ConfMan.hasKey("save_slot"))

View File

@ -43,6 +43,12 @@ private:
uint32 _priorMiddleDownTime;
uint32 _priorRightDownTime;
private:
/**
* Returns true if a savegame was selected to be loaded
* from the ScummVM launcher
*/
bool isLoadingFromLauncher() const;
/**
* Checks for the presence of any savegames and, if present,
* lets the user pick one to resume