From 981833b34e73905045338053d528af68f81884d7 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Mon, 9 Apr 2012 11:20:18 -0400 Subject: PEGASUS: Add support for load/save keys --- engines/pegasus/pegasus.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/pegasus/pegasus.h') diff --git a/engines/pegasus/pegasus.h b/engines/pegasus/pegasus.h index 349856d27b..a1b4cff9ab 100644 --- a/engines/pegasus/pegasus.h +++ b/engines/pegasus/pegasus.h @@ -189,6 +189,10 @@ public: _loadAllowed = allow; return old; } + void requestSave() { _saveRequested = true; } + bool saveRequested() const { return _saveRequested; } + void requestLoad() { _loadRequested = true; } + bool loadRequested() const { return _loadRequested; } protected: Common::Error run(); @@ -243,6 +247,7 @@ private: bool _saveAllowed, _loadAllowed; // It's so nice that this was in the original code already :P Common::Error showLoadDialog(); Common::Error showSaveDialog(); + bool _saveRequested, _loadRequested; // Misc. Hotspot _returnHotspot; -- cgit v1.2.3