FullscreenUI: Fix start file running inside UI call

This commit is contained in:
Connor McLaughlin 2021-07-04 00:27:23 +10:00
parent 5e5255c6ae
commit 7366d0fcff

View file

@ -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()