diff options
author | TheKoopaKingdom <thekoopakingdom@gmail.com> | 2017-06-02 23:03:38 +0200 |
---|---|---|
committer | TheKoopaKingdom <thekoopakingdom@gmail.com> | 2017-06-03 00:40:39 +0200 |
commit | f008b22e3b2baa7720ea65c320fe49929a53bad7 (patch) | |
tree | 24a15888dd6ebc515a09eaf00623fa23e2d4665d /src/core/core.h | |
parent | Fixed wiki URLs. (diff) | |
download | yuzu-f008b22e3b2baa7720ea65c320fe49929a53bad7.tar yuzu-f008b22e3b2baa7720ea65c320fe49929a53bad7.tar.gz yuzu-f008b22e3b2baa7720ea65c320fe49929a53bad7.tar.bz2 yuzu-f008b22e3b2baa7720ea65c320fe49929a53bad7.tar.lz yuzu-f008b22e3b2baa7720ea65c320fe49929a53bad7.tar.xz yuzu-f008b22e3b2baa7720ea65c320fe49929a53bad7.tar.zst yuzu-f008b22e3b2baa7720ea65c320fe49929a53bad7.zip |
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: PerfStats perf_stats; FrameLimiter frame_limiter; - ResultStatus GetStatus() { - return status; - } - - void SetStatus(ResultStatus new_status, std::string details = std::string()) { + void SetStatus(ResultStatus new_status, const char* details = nullptr) { status = new_status; - status_details = details; + if (details) { + status_details = details; + } } - std::string GetStatusDetails() { + const std::string& GetStatusDetails() const { return status_details; } @@ -147,8 +145,8 @@ private: static System s_instance; - ResultStatus status; - std::string status_details; + ResultStatus status = ResultStatus::Success; + std::string status_details = ""; }; inline ARM_Interface& CPU() { |