HDB: Added more code for loading save states from the command line

This commit is contained in:
Eugene Sandulenko 2019-07-09 14:42:04 +02:00
parent c71426e2f8
commit 8403960c99
3 changed files with 15 additions and 2 deletions

View file

@ -67,6 +67,11 @@ Common::Error HDBGame::loadGameState(int slot) {
// Actual Save Data
loadGame(in);
_lua->loadLua(_currentLuaName); // load the Lua code FIRST! (if no file, it's ok)
saveFileName = Common::String::format("%s.l.%03d", _targetName.c_str(), slot);
_lua->loadSaveFile(in, saveFileName.c_str());
delete in;
return Common::kNoError;