overlays: add simple home menu

This commit is contained in:
Megamouse 2023-01-14 00:07:07 +01:00
parent ac2b2d82d2
commit 44771150b7
27 changed files with 482 additions and 33 deletions

View file

@ -2192,7 +2192,7 @@ void Emulator::FinalizeRunRequest()
m_state.compare_and_swap_test(system_state::starting, system_state::running);
}
bool Emulator::Pause(bool freeze_emulation)
bool Emulator::Pause(bool freeze_emulation, bool show_resume_message)
{
const u64 start = get_system_time();
@ -2245,11 +2245,11 @@ bool Emulator::Pause(bool freeze_emulation)
GetCallbacks().on_pause();
BlockingCallFromMainThread([this]()
BlockingCallFromMainThread([this, show_resume_message]()
{
const auto status = Emu.GetStatus(false);
if (status != system_state::paused && status != system_state::frozen)
if (!show_resume_message || (status != system_state::paused && status != system_state::frozen))
{
return;
}