mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-16 11:48:36 +12:00
overlays: add simple home menu
This commit is contained in:
parent
ac2b2d82d2
commit
44771150b7
27 changed files with 482 additions and 33 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue