mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 07:39:08 +00:00
MOHAWK: Use PauseToken in menu stack
This commit is contained in:
parent
acf81a79c1
commit
c1c90afbde
@ -108,7 +108,7 @@ uint16 Menu::getVar(uint16 var) {
|
||||
}
|
||||
|
||||
void Menu::o_menuInit(uint16 var, const ArgumentsArray &args) {
|
||||
_vm->pauseEngine(true);
|
||||
_pauseToken = _vm->pauseEngine();
|
||||
|
||||
if (_inGame) {
|
||||
_wasCursorVisible = CursorMan.isVisible();
|
||||
@ -330,7 +330,7 @@ void Menu::o_menuExit(uint16 var, const ArgumentsArray &args) {
|
||||
|
||||
CursorMan.showMouse(_wasCursorVisible);
|
||||
|
||||
_vm->pauseEngine(false);
|
||||
_pauseToken.clear();
|
||||
}
|
||||
|
||||
void Menu::o_playIntroMovies(uint16 var, const ArgumentsArray &args) {
|
||||
|
@ -89,6 +89,8 @@ private:
|
||||
const char **getButtonCaptions() const;
|
||||
void resetButtons();
|
||||
|
||||
PauseToken _pauseToken;
|
||||
|
||||
};
|
||||
|
||||
} // End of namespace MystStacks
|
||||
|
Loading…
Reference in New Issue
Block a user