The system strings segment is a fixed segment of the segment manager, which doesn't change during the game, thus move all the system strings code and variables inside the segment manager

svn-id: r49372
This commit is contained in:
Filippos Karapetis 2010-06-01 14:41:48 +00:00
parent 400542a1fe
commit e083c20da1
9 changed files with 44 additions and 48 deletions

View file

@ -233,11 +233,6 @@ Common::Error SciEngine::run() {
script_adjust_opcode_formats(_gamestate);
_kernel->loadKernelNames(getGameID());
// Set the savegame dir (actually, we set it to a fake value,
// since we cannot let the game control where saves are stored)
assert(_gamestate->sys_strings->_strings[SYS_STRING_SAVEDIR]._value != 0);
strcpy(_gamestate->sys_strings->_strings[SYS_STRING_SAVEDIR]._value, "");
SciVersion soundVersion = _features->detectDoSoundType();
_gamestate->_soundCmd = new SoundCommandParser(_resMan, segMan, _kernel, _audio, soundVersion);