|
|
|
@ -7,6 +7,7 @@
|
|
|
|
|
#include "core/bus.h"
|
|
|
|
|
#include "core/controller.h"
|
|
|
|
|
#include "core/fullscreenui.h"
|
|
|
|
|
#include "core/fullscreenui_widgets.h"
|
|
|
|
|
#include "core/game_list.h"
|
|
|
|
|
#include "core/gpu.h"
|
|
|
|
|
#include "core/gpu_backend.h"
|
|
|
|
@ -18,7 +19,6 @@
|
|
|
|
|
#include "core/system_private.h"
|
|
|
|
|
|
|
|
|
|
#include "util/gpu_device.h"
|
|
|
|
|
#include "util/imgui_fullscreen.h"
|
|
|
|
|
#include "util/imgui_manager.h"
|
|
|
|
|
#include "util/ini_settings_interface.h"
|
|
|
|
|
#include "util/input_manager.h"
|
|
|
|
@ -1478,20 +1478,7 @@ void Host::ConfirmMessageAsync(std::string_view title, std::string_view message,
|
|
|
|
|
|
|
|
|
|
GPUThread::RunOnThread([title = std::string(title), message = std::string(message), callback = std::move(callback),
|
|
|
|
|
yes_text = std::string(yes_text), no_text = std::string(no_text), needs_pause]() mutable {
|
|
|
|
|
if (!FullscreenUI::Initialize())
|
|
|
|
|
{
|
|
|
|
|
callback(false);
|
|
|
|
|
|
|
|
|
|
if (needs_pause)
|
|
|
|
|
{
|
|
|
|
|
Host::RunOnCPUThread([]() {
|
|
|
|
|
if (System::IsValid())
|
|
|
|
|
System::PauseSystem(false);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
FullscreenUI::Initialize();
|
|
|
|
|
|
|
|
|
|
// Need to reset run idle state _again_ after displaying.
|
|
|
|
|
auto final_callback = [callback = std::move(callback)](bool result) {
|
|
|
|
@ -1500,8 +1487,8 @@ void Host::ConfirmMessageAsync(std::string_view title, std::string_view message,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
FullscreenUI::OpenConfirmMessageDialog(std::move(title), std::move(message), std::move(final_callback),
|
|
|
|
|
fmt::format(ICON_FA_CHECK " {}", yes_text),
|
|
|
|
|
fmt::format(ICON_FA_XMARK " {}", no_text));
|
|
|
|
|
fmt::format(ICON_FA_CHECK " {}", yes_text),
|
|
|
|
|
fmt::format(ICON_FA_XMARK " {}", no_text));
|
|
|
|
|
FullscreenUI::UpdateRunIdleState();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|