diff options
author | Eugene Sandulenko | 2019-07-09 14:42:04 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:16 +0200 |
commit | 8403960c994caf3cbbab58a3f214e40d498e81d5 (patch) | |
tree | ed7ef7afecf5a1fcfe74e063959c76fac23c341b /engines/hdb/saveload.cpp | |
parent | c71426e2f88b5c8fedd4c0e26557d868a88a650f (diff) | |
download | scummvm-rg350-8403960c994caf3cbbab58a3f214e40d498e81d5.tar.gz scummvm-rg350-8403960c994caf3cbbab58a3f214e40d498e81d5.tar.bz2 scummvm-rg350-8403960c994caf3cbbab58a3f214e40d498e81d5.zip |
HDB: Added more code for loading save states from the command line
Diffstat (limited to 'engines/hdb/saveload.cpp')
-rw-r--r-- | engines/hdb/saveload.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/hdb/saveload.cpp b/engines/hdb/saveload.cpp index 5f977fe70f..b8d2252f2b 100644 --- a/engines/hdb/saveload.cpp +++ b/engines/hdb/saveload.cpp @@ -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; |