aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2009-12-26 01:20:12 +0000
committerFilippos Karapetis2009-12-26 01:20:12 +0000
commitab2a5429f5c8e788d1a2ffa43c3b6128e1b5e68a (patch)
tree3537ce80b3f5994621a7d42a79b31ce55f1a45c8 /engines/sci
parent12b6d4ab032cad05e54b9a40bd8c36736597bb71 (diff)
downloadscummvm-rg350-ab2a5429f5c8e788d1a2ffa43c3b6128e1b5e68a.tar.gz
scummvm-rg350-ab2a5429f5c8e788d1a2ffa43c3b6128e1b5e68a.tar.bz2
scummvm-rg350-ab2a5429f5c8e788d1a2ffa43c3b6128e1b5e68a.zip
Set the save game directory to something in pre-SCI32 games, as games like SQ4CD complain that it's invalid if it's empty
svn-id: r46570
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();