summaryrefslogtreecommitdiffstats
path: root/src/core/core.h
diff options
context:
space:
mode:
authorTheKoopaKingdom <thekoopakingdom@gmail.com>2017-04-13 07:18:54 +0200
committerTheKoopaKingdom <thekoopakingdom@gmail.com>2017-06-03 00:28:14 +0200
commita8aef599e02e336f9ecb8d5cfc50aa856ea0a1c7 (patch)
tree37a7edc6a27eff75c96117203f48c9f1ec640b97 /src/core/core.h
parentOptimized messages that were repetitive and added ability for core errors to specify more details optionally. (diff)
downloadyuzu-a8aef599e02e336f9ecb8d5cfc50aa856ea0a1c7.tar
yuzu-a8aef599e02e336f9ecb8d5cfc50aa856ea0a1c7.tar.gz
yuzu-a8aef599e02e336f9ecb8d5cfc50aa856ea0a1c7.tar.bz2
yuzu-a8aef599e02e336f9ecb8d5cfc50aa856ea0a1c7.tar.lz
yuzu-a8aef599e02e336f9ecb8d5cfc50aa856ea0a1c7.tar.xz
yuzu-a8aef599e02e336f9ecb8d5cfc50aa856ea0a1c7.tar.zst
yuzu-a8aef599e02e336f9ecb8d5cfc50aa856ea0a1c7.zip
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/core/core.h b/src/core/core.h
index bc363ed97..6e555f954 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -6,9 +6,6 @@
#include <memory>
#include <string>
-
-#include <boost/optional.hpp>
-
#include "common/common_types.h"
#include "core/memory.h"
#include "core/perf_stats.h"
@@ -117,13 +114,10 @@ public:
void SetStatus(ResultStatus new_status, std::string details = std::string()) {
status = new_status;
- if (details == std::string())
- status_details = boost::none;
- else
- status_details = details;
+ status_details = details;
}
- boost::optional<std::string> GetStatusDetails() {
+ std::string GetStatusDetails() {
return status_details;
}
@@ -154,7 +148,7 @@ private:
static System s_instance;
ResultStatus status;
- boost::optional<std::string> status_details;
+ std::string status_details;
};
inline ARM_Interface& CPU() {