aboutsummaryrefslogtreecommitdiff
path: root/engines/engine.h
diff options
context:
space:
mode:
authorMax Horn2008-11-03 18:32:16 +0000
committerMax Horn2008-11-03 18:32:16 +0000
commit55c10e0ec6f2d6ea7c58ec1e4b74e5552fda5ddc (patch)
tree4df4d54fc783f837004ab2419c90aaf5c7f5930a /engines/engine.h
parent646666125232064f2c4657c4025433b243e42af9 (diff)
downloadscummvm-rg350-55c10e0ec6f2d6ea7c58ec1e4b74e5552fda5ddc.tar.gz
scummvm-rg350-55c10e0ec6f2d6ea7c58ec1e4b74e5552fda5ddc.tar.bz2
scummvm-rg350-55c10e0ec6f2d6ea7c58ec1e4b74e5552fda5ddc.zip
Patch #2122869: ALL: Common load dialog
svn-id: r34883
Diffstat (limited to 'engines/engine.h')
-rw-r--r--engines/engine.h39
1 files changed, 38 insertions, 1 deletions
diff --git a/engines/engine.h b/engines/engine.h
index 69caafac49..90eea859ef 100644
--- a/engines/engine.h
+++ b/engines/engine.h
@@ -125,6 +125,26 @@ public:
*/
virtual void syncSoundSettings();
+ /**
+ * Load a game state
+ */
+ virtual int loadGameState(int slot);
+
+ /**
+ * Indicates whether a game state can be loaded
+ */
+ virtual bool canLoadGameStateCurrently();
+
+ /**
+ * Save a game state
+ */
+ virtual int saveGameState(int slot);
+
+ /**
+ * Indicates whether a game state can be saved
+ */
+ virtual bool canSaveGameStateCurrently();
+
protected:
/**
@@ -182,7 +202,24 @@ public:
/**
* 'Return to launcher' feature is supported, i.e., EVENT_RTL is handled.
*/
- kSupportsRTL
+ kSupportsRTL = 0,
+
+ /**
+ * Listing all Save States for a given target is supported, i.e.,
+ * the listSaves() method is implemented.
+ * Used for --list-saves support, as well as the GMM load dialog.
+ */
+ kSupportsListSaves = 1,
+
+ /**
+ * Loading from the in-game common ScummVM options dialog is supported
+ */
+ kSupportsLoadingDuringRuntime = 8,
+
+ /**
+ * Saving from the in-game common ScummVM options dialog is supported
+ */
+ kSupportsSavingDuringRuntime = 9
};
/**