aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorColin Snover2016-12-18 18:23:08 -0600
committerColin Snover2016-12-18 19:03:30 -0600
commitbc8aea4b60472aca3b238b9accbf0df4d0ceb53f (patch)
treea32fe0f73d70c695d6b9785556855c2d57c244a6 /engines
parent8bda50fb08f893c9a29332f78917d20a963aab77 (diff)
downloadscummvm-rg350-bc8aea4b60472aca3b238b9accbf0df4d0ceb53f.tar.gz
scummvm-rg350-bc8aea4b60472aca3b238b9accbf0df4d0ceb53f.tar.bz2
scummvm-rg350-bc8aea4b60472aca3b238b9accbf0df4d0ceb53f.zip
SCI32: Disable load button in F5 menu for Phant1 & Hoyle5
These games either don't have saves (Hoyle) or the saves bypass the normal save game system so are unidentifiable by ScummVM (Phant1).
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/detection.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/sci/detection.cpp b/engines/sci/detection.cpp
index a3b15b23e0..5270398899 100644
--- a/engines/sci/detection.cpp
+++ b/engines/sci/detection.cpp
@@ -883,6 +883,18 @@ Common::Error SciEngine::saveGameState(int slot, const Common::String &desc) {
}
bool SciEngine::canLoadGameStateCurrently() {
+#ifdef ENABLE_SCI32
+ if (getSciVersion() >= SCI_VERSION_2) {
+ switch (getGameId()) {
+ case GID_PHANTASMAGORIA:
+ case GID_HOYLE5:
+ return false;
+ default:
+ break;
+ }
+ }
+#endif
+
return !_gamestate->executionStackBase;
}