mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 09:26:26 +00:00
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:
parent
12b6d4ab03
commit
ab2a5429f5
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user