From 73b3a43b893e78fd7f18eae490e24f253414ce31 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sun, 29 Apr 2018 19:22:50 +0200 Subject: MOHAWK: MYST: Introduce a main menu stack Used in the 25th Anniversary edition of Myst ME --- engines/mohawk/myst.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'engines/mohawk/myst.h') diff --git a/engines/mohawk/myst.h b/engines/mohawk/myst.h index 43c918a7e2..96a3c22931 100644 --- a/engines/mohawk/myst.h +++ b/engines/mohawk/myst.h @@ -75,7 +75,8 @@ enum MystStack { kSeleniticStack, // Selenitic Age kDemoSlidesStack, // Demo Slideshow kDemoPreviewStack, // Demo Myst Library Preview - kStoneshipStack // Stoneship Age + kStoneshipStack, // Stoneship Age + kMenuStack // Main menu }; // Transitions @@ -190,20 +191,27 @@ public: void tryAutoSaving(); bool hasFeature(EngineFeature f) const override; + void resumeFromMainMenu(); + + void runLoadDialog(); + void runSaveDialog(); + void runOptionsDialog(); + private: MystConsole *_console; MystOptionsDialog *_optionsDialog; ResourceCache _cache; + MystScriptParserPtr _prevStack; + MystCardPtr _card; + MystCardPtr _prevCard; uint32 _lastSaveTime; bool hasGameSaveSupport() const; void pauseEngineIntern(bool pause) override; - void runLoadDialog(); - void runSaveDialog(); - void runOptionsDialog(); + void goToMainMenu(); void dropPage(); -- cgit v1.2.3