mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00: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