Refactor SystemBootParameters ownership

This commit is contained in:
Silent committed 2021-06-08 18:38:12 +02:00
1 parent 4e282cd172
commit e21f2644d0
9 files changed
+32 -41

No files matched your search

+1 -2
View File
@@ -68,8 +68,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
host_interface->BootSystem(std::move(boot_params));
int result;
if (System::IsValid() || !host_interface->InBatchMode())