diff --git a/src/duckstation-qt/qthostinterface.cpp b/src/duckstation-qt/qthostinterface.cpp index 59ad0189..780d866b 100644 --- a/src/duckstation-qt/qthostinterface.cpp +++ b/src/duckstation-qt/qthostinterface.cpp @@ -765,13 +765,7 @@ void QtHostInterface::powerOffSystem() return; } - if (System::IsShutdown()) - return; - - if (g_settings.save_state_on_exit) - SaveResumeSaveState(); - - DestroySystem(); + PowerOffSystem(); } void QtHostInterface::synchronousPowerOffSystem() diff --git a/src/frontend-common/common_host_interface.cpp b/src/frontend-common/common_host_interface.cpp index 4e733c75..d820192a 100644 --- a/src/frontend-common/common_host_interface.cpp +++ b/src/frontend-common/common_host_interface.cpp @@ -183,6 +183,9 @@ void CommonHostInterface::DestroySystem() void CommonHostInterface::PowerOffSystem() { + if (System::IsShutdown()) + return; + if (g_settings.save_state_on_exit) SaveResumeSaveState();