summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-06-02 22:24:29 -0400
committerGitHub <noreply@github.com>2017-06-02 22:24:29 -0400
commit81449f025a190cd9f931d73cf959ddbfebff497a (patch)
tree24a15888dd6ebc515a09eaf00623fa23e2d4665d /src/core/core.h
parent4857eb441bbe7ba1637838c9e5158f0801f40730 (diff)
parentf008b22e3b2baa7720ea65c320fe49929a53bad7 (diff)
Merge pull request #2611 from TheKoopaKingdom/missing-file-dialogs
Display QMessageBox Dialogs For Errors
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h17
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:
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
+ ErrorUnknown ///< Any other error
};
/**
@@ -105,6 +108,17 @@ public:
PerfStats perf_stats;
FrameLimiter frame_limiter;
+ void SetStatus(ResultStatus new_status, const char* details = nullptr) {
+ status = new_status;
+ if (details) {
+ status_details = details;
+ }
+ }
+
+ const std::string& GetStatusDetails() const {
+ return status_details;
+ }
+
private:
/**
* Initialize the emulated system.
@@ -130,6 +144,9 @@ private:
std::unique_ptr<Core::TelemetrySession> telemetry_session;
static System s_instance;
+
+ ResultStatus status = ResultStatus::Success;
+ std::string status_details = "";
};
inline ARM_Interface& CPU() {