mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
Emu: always use Emu.Quit() to quit RPCS3
This creates a single possible point of failure for calling quit()
This commit is contained in:
parent
332f9cae77
commit
d91551c277
5 changed files with 37 additions and 24 deletions
|
@ -39,12 +39,15 @@ void headless_application::InitializeCallbacks()
|
|||
{
|
||||
EmuCallbacks callbacks = CreateCallbacks();
|
||||
|
||||
callbacks.exit = [this](bool force_quit)
|
||||
callbacks.exit = [this](bool force_quit) -> bool
|
||||
{
|
||||
if (force_quit)
|
||||
{
|
||||
quit();
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
callbacks.call_after = [=, this](std::function<void()> func)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue