Qt: Implement safe shutdown

This commit is contained in:
spycrab
2017-06-24 17:00:37 +02:00
parent 2de31317e9
commit 6688e66c60
2 changed files with 63 additions and 10 deletions

View File

@ -27,6 +27,8 @@ public:
explicit MainWindow();
~MainWindow();
bool eventFilter(QObject* object, QEvent* event) override;
signals:
void EmulationStarted();
void EmulationPaused();
@ -86,6 +88,7 @@ private:
GameList* m_game_list;
RenderWidget* m_render_widget;
bool m_rendering_to_main;
bool m_stop_requested = false;
int m_state_slot = 1;
HotkeyScheduler* m_hotkey_scheduler;