summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 6af772831..0963f273e 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -40,7 +40,11 @@ public:
40 ErrorLoader_ErrorEncrypted, ///< Error loading the specified application due to encryption 40 ErrorLoader_ErrorEncrypted, ///< Error loading the specified application due to encryption
41 ErrorLoader_ErrorInvalidFormat, ///< Error loading the specified application due to an 41 ErrorLoader_ErrorInvalidFormat, ///< Error loading the specified application due to an
42 /// invalid format 42 /// invalid format
43 ErrorSystemFiles, ///< Error in finding system files
44 ErrorSharedFont, ///< Error in finding shared font
43 ErrorVideoCore, ///< Error in the video core 45 ErrorVideoCore, ///< Error in the video core
46 ErrorOpenGL, ///< Error when initializing OpenGL
47 ErrorUnknown ///< Any other error
44 }; 48 };
45 49
46 /** 50 /**
@@ -105,6 +109,14 @@ public:
105 PerfStats perf_stats; 109 PerfStats perf_stats;
106 FrameLimiter frame_limiter; 110 FrameLimiter frame_limiter;
107 111
112 ResultStatus GetStatus() {
113 return status;
114 }
115
116 void SetStatus(ResultStatus newStatus) {
117 status = newStatus;
118 }
119
108private: 120private:
109 /** 121 /**
110 * Initialize the emulated system. 122 * Initialize the emulated system.
@@ -130,6 +142,7 @@ private:
130 std::unique_ptr<Core::TelemetrySession> telemetry_session; 142 std::unique_ptr<Core::TelemetrySession> telemetry_session;
131 143
132 static System s_instance; 144 static System s_instance;
145 ResultStatus status;
133}; 146};
134 147
135inline ARM_Interface& CPU() { 148inline ARM_Interface& CPU() {