diff options
author | TheKoopaKingdom <thekoopakingdom@gmail.com> | 2017-03-08 16:28:30 -0500 |
---|---|---|
committer | TheKoopaKingdom <thekoopakingdom@gmail.com> | 2017-06-02 18:27:56 -0400 |
commit | 1ecb322daa0e2521fe0e179e87889db9aaaf63b0 (patch) | |
tree | 6f8cc571b41a76c7ab93843472809bfc9121abb7 /src/core/core.h | |
parent | e523c76cc8652dca4862bed2209cbf56ffbc06c2 (diff) |
Added system for handling core errors in citra-qt.
Diffstat (limited to 'src/core/core.h')
-rw-r--r-- | src/core/core.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h index 6af772831a..0963f273e1 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -40,7 +40,11 @@ public: ErrorLoader_ErrorEncrypted, ///< Error loading the specified application due to encryption ErrorLoader_ErrorInvalidFormat, ///< Error loading the specified application due to an /// invalid format + ErrorSystemFiles, ///< Error in finding system files + ErrorSharedFont, ///< Error in finding shared font ErrorVideoCore, ///< Error in the video core + ErrorOpenGL, ///< Error when initializing OpenGL + ErrorUnknown ///< Any other error }; /** @@ -105,6 +109,14 @@ public: PerfStats perf_stats; FrameLimiter frame_limiter; + ResultStatus GetStatus() { + return status; + } + + void SetStatus(ResultStatus newStatus) { + status = newStatus; + } + private: /** * Initialize the emulated system. @@ -130,6 +142,7 @@ private: std::unique_ptr<Core::TelemetrySession> telemetry_session; static System s_instance; + ResultStatus status; }; inline ARM_Interface& CPU() { |