From ab2a5429f5c8e788d1a2ffa43c3b6128e1b5e68a Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 26 Dec 2009 01:20:12 +0000 Subject: 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 --- engines/sci/sci.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'engines/sci') 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(); -- cgit v1.2.3