diff options
Diffstat (limited to 'engines/hugo/detection.cpp')
-rw-r--r-- | engines/hugo/detection.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/hugo/detection.cpp b/engines/hugo/detection.cpp index c99db2433f..e862e339ce 100644 --- a/engines/hugo/detection.cpp +++ b/engines/hugo/detection.cpp @@ -292,6 +292,11 @@ SaveStateDescriptor HugoMetaEngine::querySaveMetaInfos(const char *target, int s desc.setSaveTime(hour, minutes); + // Slot 0 is used for the 'restart game' save in all Hugo games, thus + // we prevent it from being deleted. + desc.setDeletableFlag(slot != 0); + desc.setWriteProtectedFlag(slot == 0); + delete file; return desc; } |