diff options
Diffstat (limited to 'src/core/core.h')
| -rw-r--r-- | src/core/core.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h index 6af772831..4e3b6b409 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
| @@ -40,7 +40,10 @@ 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 | ErrorUnknown ///< Any other error | ||
| 44 | }; | 47 | }; |
| 45 | 48 | ||
| 46 | /** | 49 | /** |
| @@ -105,6 +108,17 @@ public: | |||
| 105 | PerfStats perf_stats; | 108 | PerfStats perf_stats; |
| 106 | FrameLimiter frame_limiter; | 109 | FrameLimiter frame_limiter; |
| 107 | 110 | ||
| 111 | void SetStatus(ResultStatus new_status, const char* details = nullptr) { | ||
| 112 | status = new_status; | ||
| 113 | if (details) { | ||
| 114 | status_details = details; | ||
| 115 | } | ||
| 116 | } | ||
| 117 | |||
| 118 | const std::string& GetStatusDetails() const { | ||
| 119 | return status_details; | ||
| 120 | } | ||
| 121 | |||
| 108 | private: | 122 | private: |
| 109 | /** | 123 | /** |
| 110 | * Initialize the emulated system. | 124 | * Initialize the emulated system. |
| @@ -130,6 +144,9 @@ private: | |||
| 130 | std::unique_ptr<Core::TelemetrySession> telemetry_session; | 144 | std::unique_ptr<Core::TelemetrySession> telemetry_session; |
| 131 | 145 | ||
| 132 | static System s_instance; | 146 | static System s_instance; |
| 147 | |||
| 148 | ResultStatus status = ResultStatus::Success; | ||
| 149 | std::string status_details = ""; | ||
| 133 | }; | 150 | }; |
| 134 | 151 | ||
| 135 | inline ARM_Interface& CPU() { | 152 | inline ARM_Interface& CPU() { |