HDB: Added more code for loading save states from the command line
This commit is contained in:
parent
c71426e2f8
commit
8403960c99
3 changed files with 15 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue