diff options
Diffstat (limited to '')
| -rw-r--r-- | src/citra_qt/main.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/citra_qt/main.h b/src/citra_qt/main.h index 9b57c5772..3e29534fb 100644 --- a/src/citra_qt/main.h +++ b/src/citra_qt/main.h | |||
| @@ -5,12 +5,14 @@ | |||
| 5 | #ifndef _CITRA_QT_MAIN_HXX_ | 5 | #ifndef _CITRA_QT_MAIN_HXX_ |
| 6 | #define _CITRA_QT_MAIN_HXX_ | 6 | #define _CITRA_QT_MAIN_HXX_ |
| 7 | 7 | ||
| 8 | #include <memory> | ||
| 8 | #include <QMainWindow> | 9 | #include <QMainWindow> |
| 9 | 10 | ||
| 10 | #include "ui_main.h" | 11 | #include "ui_main.h" |
| 11 | 12 | ||
| 12 | class GImageInfo; | 13 | class GImageInfo; |
| 13 | class GRenderWindow; | 14 | class GRenderWindow; |
| 15 | class EmuThread; | ||
| 14 | class ProfilerWidget; | 16 | class ProfilerWidget; |
| 15 | class DisassemblerWidget; | 17 | class DisassemblerWidget; |
| 16 | class RegistersWidget; | 18 | class RegistersWidget; |
| @@ -34,8 +36,27 @@ public: | |||
| 34 | GMainWindow(); | 36 | GMainWindow(); |
| 35 | ~GMainWindow(); | 37 | ~GMainWindow(); |
| 36 | 38 | ||
| 39 | signals: | ||
| 40 | |||
| 41 | /** | ||
| 42 | * Signal that is emitted when a new EmuThread has been created and an emulation session is | ||
| 43 | * about to start. At this time, the core system emulation has been initialized, and all | ||
| 44 | * emulation handles and memory should be valid. | ||
| 45 | * | ||
| 46 | * @param emu_thread Pointer to the newly created EmuThread (to be used by widgets that need to | ||
| 47 | * access/change emulation state). | ||
| 48 | */ | ||
| 49 | void EmulationStarting(EmuThread* emu_thread); | ||
| 50 | |||
| 51 | /** | ||
| 52 | * Signal that is emitted when emulation is about to stop. At this time, the EmuThread and core | ||
| 53 | * system emulation handles and memory are still valid, but are about become invalid. | ||
| 54 | */ | ||
| 55 | void EmulationStopping(); | ||
| 56 | |||
| 37 | private: | 57 | private: |
| 38 | void BootGame(std::string filename); | 58 | void BootGame(std::string filename); |
| 59 | void ShutdownGame(); | ||
| 39 | 60 | ||
| 40 | void closeEvent(QCloseEvent* event) override; | 61 | void closeEvent(QCloseEvent* event) override; |
| 41 | 62 | ||
| @@ -55,6 +76,8 @@ private: | |||
| 55 | 76 | ||
| 56 | GRenderWindow* render_window; | 77 | GRenderWindow* render_window; |
| 57 | 78 | ||
| 79 | std::unique_ptr<EmuThread> emu_thread; | ||
| 80 | |||
| 58 | ProfilerWidget* profilerWidget; | 81 | ProfilerWidget* profilerWidget; |
| 59 | DisassemblerWidget* disasmWidget; | 82 | DisassemblerWidget* disasmWidget; |
| 60 | RegistersWidget* registersWidget; | 83 | RegistersWidget* registersWidget; |