mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 15:31:26 +12:00
Qt: add --no-gui mode
This commit is contained in:
parent
7cf037bd49
commit
432364cb04
14 changed files with 156 additions and 108 deletions
|
@ -1708,7 +1708,8 @@ void Emulator::Stop(bool restart)
|
|||
return;
|
||||
}
|
||||
|
||||
const bool do_exit = !restart && !m_force_boot && g_cfg.misc.autoexit;
|
||||
const bool full_stop = !restart && !m_force_boot;
|
||||
const bool do_exit = full_stop && g_cfg.misc.autoexit;
|
||||
|
||||
LOG_NOTICE(GENERAL, "Stopping emulator...");
|
||||
|
||||
|
@ -1735,10 +1736,14 @@ void Emulator::Stop(bool restart)
|
|||
|
||||
if (do_exit)
|
||||
{
|
||||
GetCallbacks().exit();
|
||||
GetCallbacks().exit(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (full_stop)
|
||||
{
|
||||
GetCallbacks().exit(false);
|
||||
}
|
||||
Init();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue