diff options
Diffstat (limited to 'src/core/core.h')
| -rw-r--r-- | src/core/core.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/core/core.h b/src/core/core.h index 6e555f954..4e3b6b409 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
| @@ -108,16 +108,14 @@ public: | |||
| 108 | PerfStats perf_stats; | 108 | PerfStats perf_stats; |
| 109 | FrameLimiter frame_limiter; | 109 | FrameLimiter frame_limiter; |
| 110 | 110 | ||
| 111 | ResultStatus GetStatus() { | 111 | void SetStatus(ResultStatus new_status, const char* details = nullptr) { |
| 112 | return status; | ||
| 113 | } | ||
| 114 | |||
| 115 | void SetStatus(ResultStatus new_status, std::string details = std::string()) { | ||
| 116 | status = new_status; | 112 | status = new_status; |
| 117 | status_details = details; | 113 | if (details) { |
| 114 | status_details = details; | ||
| 115 | } | ||
| 118 | } | 116 | } |
| 119 | 117 | ||
| 120 | std::string GetStatusDetails() { | 118 | const std::string& GetStatusDetails() const { |
| 121 | return status_details; | 119 | return status_details; |
| 122 | } | 120 | } |
| 123 | 121 | ||
| @@ -147,8 +145,8 @@ private: | |||
| 147 | 145 | ||
| 148 | static System s_instance; | 146 | static System s_instance; |
| 149 | 147 | ||
| 150 | ResultStatus status; | 148 | ResultStatus status = ResultStatus::Success; |
| 151 | std::string status_details; | 149 | std::string status_details = ""; |
| 152 | }; | 150 | }; |
| 153 | 151 | ||
| 154 | inline ARM_Interface& CPU() { | 152 | inline ARM_Interface& CPU() { |