[Scummvm-cvs-logs] SF.net SVN: scummvm:[46570] scummvm/trunk/engines/sci/sci.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Sat Dec 26 02:20:12 CET 2009
Revision: 46570
http://scummvm.svn.sourceforge.net/scummvm/?rev=46570&view=rev
Author: thebluegr
Date: 2009-12-26 01:20:12 +0000 (Sat, 26 Dec 2009)
Log Message:
-----------
Set the save game directory to something in pre-SCI32 games, as games like SQ4CD complain that it's invalid if it's empty
Modified Paths:
--------------
scummvm/trunk/engines/sci/sci.cpp
Modified: scummvm/trunk/engines/sci/sci.cpp
===================================================================
--- scummvm/trunk/engines/sci/sci.cpp 2009-12-26 00:50:09 UTC (rev 46569)
+++ scummvm/trunk/engines/sci/sci.cpp 2009-12-26 01:20:12 UTC (rev 46570)
@@ -178,7 +178,13 @@
// 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();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list