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
This commit is contained in:
Filippos Karapetis 2009-12-26 01:20:12 +00:00
parent 12b6d4ab03
commit ab2a5429f5

View File

@ -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();