Refactor SystemBootParameters ownership
This commit is contained in:
@ -551,9 +551,7 @@ static void DoStartPath(const std::string& path, bool allow_resume)
|
||||
return;
|
||||
}
|
||||
|
||||
SystemBootParameters params;
|
||||
params.filename = path;
|
||||
s_host_interface->BootSystem(params);
|
||||
s_host_interface->BootSystem(std::make_shared<SystemBootParameters>(path));
|
||||
}
|
||||
|
||||
static void DoStartFile()
|
||||
@ -571,10 +569,7 @@ static void DoStartFile()
|
||||
|
||||
static void DoStartBIOS()
|
||||
{
|
||||
s_host_interface->RunLater([]() {
|
||||
SystemBootParameters boot_params;
|
||||
s_host_interface->BootSystem(boot_params);
|
||||
});
|
||||
s_host_interface->RunLater([]() { s_host_interface->BootSystem(std::make_shared<SystemBootParameters>()); });
|
||||
ClearImGuiFocus();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user