Merge pull request #2210 from mgziminsky/fix_autosave

NoGUI: Fix autosave on shutdown when started with -resume
This commit is contained in:
Connor McLaughlin 2021-06-03 14:02:58 +10:00 committed by GitHub
commit 9feaae1a15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ static int Run(std::unique_ptr<NoGUIHostInterface> host_interface, std::unique_p
if (boot_params)
host_interface->BootSystem(*boot_params);
boot_params.reset(); // Need to free resume file handle so auto save on exit works
int result;
if (System::IsValid() || !host_interface->InBatchMode())