mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-28 04:34:50 +00:00
TITANIC: Enable initial copyright screen
This commit is contained in:
parent
6814b1e163
commit
1342a45321
@ -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"))
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user