aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/sci.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index 2f31f97501..04400df969 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -178,7 +178,13 @@ Common::Error SciEngine::run() {
// Set the savegame dir (actually, we set it to a fake value,
// since we cannot let the game control where saves are stored)
- strcpy(_gamestate->sys_strings->_strings[SYS_STRING_SAVEDIR]._value, "");
+ // Some SCI1.1 games (e.g. SQ4CD) complain if this is empty
+#ifdef ENABLE_SCI32
+ if (getSciVersion() >= SCI_VERSION_2)
+ strcpy(_gamestate->sys_strings->_strings[SYS_STRING_SAVEDIR]._value, "");
+ else
+#endif
+ strcpy(_gamestate->sys_strings->_strings[SYS_STRING_SAVEDIR]._value, "/");
SciVersion soundVersion = _gamestate->detectDoSoundType();