mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 14:25:37 +00:00
FullscreenUI: Fix start file running inside UI call
This commit is contained in:
parent
5e5255c6ae
commit
7366d0fcff
|
@ -596,11 +596,13 @@ static void DoStartPath(const std::string& path, bool allow_resume)
|
|||
|
||||
if (allow_resume && g_settings.save_state_on_exit)
|
||||
{
|
||||
s_host_interface->ResumeSystemFromState(path.c_str(), true);
|
||||
return;
|
||||
s_host_interface->RunLater([path]() { s_host_interface->ResumeSystemFromState(path.c_str(), true); });
|
||||
}
|
||||
else
|
||||
{
|
||||
auto params = std::make_shared<SystemBootParameters>(path);
|
||||
s_host_interface->RunLater([params]() { s_host_interface->BootSystem(std::move(params)); });
|
||||
}
|
||||
|
||||
s_host_interface->BootSystem(std::make_shared<SystemBootParameters>(path));
|
||||
}
|
||||
|
||||
static void DoStartFile()
|
||||
|
|
Loading…
Reference in a new issue