mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-07 12:05:52 +00:00
Qt: Fix double memcard warning on shutdown
This commit is contained in:
parent
0687e59bda
commit
ba3c693717
@ -2576,8 +2576,15 @@ void Host::RequestSystemShutdown(bool allow_confirm, bool save_state)
|
|||||||
if (!System::IsValid())
|
if (!System::IsValid())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
QMetaObject::invokeMethod(g_main_window, "requestShutdown", Qt::QueuedConnection, Q_ARG(bool, allow_confirm),
|
if (!allow_confirm)
|
||||||
Q_ARG(bool, true), Q_ARG(bool, save_state));
|
{
|
||||||
|
g_emu_thread->shutdownSystem(save_state, false);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
QMetaObject::invokeMethod(g_main_window, "requestShutdown", Qt::QueuedConnection, Q_ARG(bool, allow_confirm),
|
||||||
|
Q_ARG(bool, true), Q_ARG(bool, save_state));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Host::RequestResetSettings(bool system, bool controller)
|
void Host::RequestResetSettings(bool system, bool controller)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user