diff options
Diffstat (limited to 'src/core/system.h')
| -rw-r--r-- | src/core/system.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/core/system.h b/src/core/system.h index 05d836530..59a75ca12 100644 --- a/src/core/system.h +++ b/src/core/system.h | |||
| @@ -4,30 +4,11 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include "common/emu_window.h" | 7 | class EmuWindow; |
| 8 | |||
| 9 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 10 | 8 | ||
| 11 | namespace System { | 9 | namespace System { |
| 12 | 10 | ||
| 13 | // State of the full emulator | ||
| 14 | enum State { | ||
| 15 | STATE_NULL = 0, ///< System is in null state, nothing initialized | ||
| 16 | STATE_IDLE, ///< System is in an initialized state, but not running | ||
| 17 | STATE_RUNNING, ///< System is running | ||
| 18 | STATE_LOADING, ///< System is loading a ROM | ||
| 19 | STATE_HALTED, ///< System is halted (error) | ||
| 20 | STATE_STALLED, ///< System is stalled (unused) | ||
| 21 | STATE_DEBUG, ///< System is in a special debug mode (unused) | ||
| 22 | STATE_DIE ///< System is shutting down | ||
| 23 | }; | ||
| 24 | |||
| 25 | extern volatile State g_state; | ||
| 26 | |||
| 27 | void UpdateState(State state); | ||
| 28 | void Init(EmuWindow* emu_window); | 11 | void Init(EmuWindow* emu_window); |
| 29 | void RunLoopFor(int cycles); | ||
| 30 | void RunLoopUntil(u64 global_cycles); | ||
| 31 | void Shutdown(); | 12 | void Shutdown(); |
| 32 | 13 | ||
| 33 | } | 14 | } |