From bc8aea4b60472aca3b238b9accbf0df4d0ceb53f Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sun, 18 Dec 2016 18:23:08 -0600 Subject: 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). --- engines/sci/detection.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'engines') 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; } -- cgit v1.2.3