Skip to content

Commit

Permalink
ZVISION: Implement quit function with reminder
Browse files Browse the repository at this point in the history
  • Loading branch information
Marisa-Chan committed Nov 12, 2014
1 parent 9e9b890 commit c79ac80
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions engines/zvision/zvision.cpp
Expand Up @@ -459,4 +459,11 @@ void ZVision::menuBarEnable(uint16 menus) {
_menu->setEnable(menus);
}

bool ZVision::ifQuit() {
if (askQuestion(_stringManager->getTextLine(StringManager::ZVISION_STR_EXITPROMT))) {
quitGame();
return true;
}
return false;
}
} // End of namespace ZVision
2 changes: 2 additions & 0 deletions engines/zvision/zvision.h
Expand Up @@ -187,6 +187,8 @@ class ZVision : public Engine {

void menuBarEnable(uint16 menus);

bool ifQuit();

private:
void initialize();
void initFonts();
Expand Down

0 comments on commit c79ac80

Please sign in to comment.