aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/engine/file.h')
-rw-r--r--engines/sci/engine/file.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/sci/engine/file.h b/engines/sci/engine/file.h
index 27250d3da9..b960058346 100644
--- a/engines/sci/engine/file.h
+++ b/engines/sci/engine/file.h
@@ -41,8 +41,13 @@ enum {
#ifdef ENABLE_SCI32
enum {
- kAutoSaveId = 0, ///< The save game slot number for autosaves
- kNewGameId = 999 ///< The save game slot number for a "new game" save
+ kAutoSaveId = 0, ///< The save game slot number for autosaves
+ kNewGameId = 999, ///< The save game slot number for a "new game" save
+
+ // SCI engine expects game IDs to start at 0, but slot 0 in ScummVM is
+ // reserved for autosave, so non-autosave games get their IDs shifted up
+ // when saving or restoring, and shifted down when enumerating save games
+ kSaveIdShift = 1
};
#endif