FullscreenUI: Fix assert when booting+loading state

This commit is contained in:
Stenzek 2025-03-23 16:43:57 +10:00
parent 03d7af2efc
commit 9411e40c20
No known key found for this signature in database

View File

@ -5033,10 +5033,9 @@ void FullscreenUI::DrawGraphicsSettingsPage()
if (is_hardware)
{
DrawIntListSetting(
bsi, FSUI_ICONSTR(ICON_FA_EXPAND_ALT, "Internal Resolution"),
FSUI_CSTR("Upscales the game's rendering by the specified multiplier."),
"GPU", "ResolutionScale", 1, resolution_scales);
DrawIntListSetting(bsi, FSUI_ICONSTR(ICON_FA_EXPAND_ALT, "Internal Resolution"),
FSUI_CSTR("Upscales the game's rendering by the specified multiplier."), "GPU",
"ResolutionScale", 1, resolution_scales);
DrawEnumSetting(bsi, FSUI_ICONSTR(ICON_FA_COMPRESS_ALT, "Downsampling"),
FSUI_CSTR("Downsamples the rendered image prior to displaying it. Can improve "
@ -7339,6 +7338,8 @@ void FullscreenUI::DoLoadState(std::string path)
std::string boot_path = std::move(s_state.save_state_selector_game_path);
CloseSaveStateSelector();
if (GPUThread::HasGPUBackend())
{
Host::RunOnCPUThread([boot_path = std::move(boot_path), path = std::move(path)]() mutable {
if (System::IsValid())
{
@ -7362,11 +7363,12 @@ void FullscreenUI::DoLoadState(std::string path)
}
}
}
});
}
else
{
DoStartPath(std::move(boot_path), std::move(path));
}
});
}
void FullscreenUI::DoSaveState(s32 slot, bool global)