diff options
Diffstat (limited to 'engines/sci/sci.cpp')
| -rw-r--r-- | engines/sci/sci.cpp | 12 | 
1 files changed, 5 insertions, 7 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index dd085fe9aa..eda02d6999 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -179,13 +179,7 @@ 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) -	// 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, "/"); +	strcpy(_gamestate->sys_strings->_strings[SYS_STRING_SAVEDIR]._value, "");  	SciVersion soundVersion = _gamestate->detectDoSoundType(); @@ -274,6 +268,10 @@ uint32 SciEngine::getFlags() const {  	return _gameDescription->flags;  } +bool SciEngine::isDemo() const { +	return getFlags() & ADGF_DEMO; +} +  Common::String SciEngine::getSavegameName(int nr) const {  	return _targetName + Common::String::printf(".%03d", nr);  }  | 
