mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 06:51:26 +12:00
Add log message when QApplication is being quit
This commit is contained in:
parent
fdc1a51cba
commit
30a4b26306
2 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,8 @@
|
||||||
|
|
||||||
#include <clocale>
|
#include <clocale>
|
||||||
|
|
||||||
|
LOG_CHANNEL(sys_log, "SYS");
|
||||||
|
|
||||||
[[noreturn]] void report_fatal_error(std::string_view text, bool is_html = false, bool include_help_text = true);
|
[[noreturn]] void report_fatal_error(std::string_view text, bool is_html = false, bool include_help_text = true);
|
||||||
|
|
||||||
// For now, a trivial constructor/destructor. May add command line usage later.
|
// For now, a trivial constructor/destructor. May add command line usage later.
|
||||||
|
@ -56,6 +58,7 @@ void headless_application::InitializeCallbacks()
|
||||||
on_exit();
|
on_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sys_log.notice("Quitting headless application");
|
||||||
quit();
|
quit();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -593,6 +593,8 @@ void gui_application::InitializeCallbacks()
|
||||||
// Close main window in order to save its window state
|
// Close main window in order to save its window state
|
||||||
m_main_window->close();
|
m_main_window->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gui_log.notice("Quitting gui application");
|
||||||
quit();
|
quit();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue