summaryrefslogtreecommitdiff
path: root/src/core/frontend/applets
diff options
context:
space:
mode:
authorGravatar Morph2022-06-28 16:59:33 -0700
committerGravatar GitHub2022-06-28 16:59:33 -0700
commit01bc0c84f021ad389309aeb23bdb063070aeb2fe (patch)
tree720dc203d1eeb85e47c6f9b0d57cd00ec8a69038 /src/core/frontend/applets
parentMerge pull request #8504 from comex/mesosphere-current-process (diff)
parentvideo_core: Replace VKUpdateDescriptorQueue with UpdateDescriptorQueue (diff)
downloadyuzu-01bc0c84f021ad389309aeb23bdb063070aeb2fe.tar.gz
yuzu-01bc0c84f021ad389309aeb23bdb063070aeb2fe.tar.xz
yuzu-01bc0c84f021ad389309aeb23bdb063070aeb2fe.zip
Merge pull request #8512 from german77/nnResult
Replace multiple names with a better name
Diffstat (limited to 'src/core/frontend/applets')
-rw-r--r--src/core/frontend/applets/error.cpp6
-rw-r--r--src/core/frontend/applets/error.h12
2 files changed, 9 insertions, 9 deletions
diff --git a/src/core/frontend/applets/error.cpp b/src/core/frontend/applets/error.cpp
index f2ec4b10e..f8b961098 100644
--- a/src/core/frontend/applets/error.cpp
+++ b/src/core/frontend/applets/error.cpp
@@ -8,12 +8,12 @@ namespace Core::Frontend {
8 8
9ErrorApplet::~ErrorApplet() = default; 9ErrorApplet::~ErrorApplet() = default;
10 10
11void DefaultErrorApplet::ShowError(ResultCode error, std::function<void()> finished) const { 11void DefaultErrorApplet::ShowError(Result error, std::function<void()> finished) const {
12 LOG_CRITICAL(Service_Fatal, "Application requested error display: {:04}-{:04} (raw={:08X})", 12 LOG_CRITICAL(Service_Fatal, "Application requested error display: {:04}-{:04} (raw={:08X})",
13 error.module.Value(), error.description.Value(), error.raw); 13 error.module.Value(), error.description.Value(), error.raw);
14} 14}
15 15
16void DefaultErrorApplet::ShowErrorWithTimestamp(ResultCode error, std::chrono::seconds time, 16void DefaultErrorApplet::ShowErrorWithTimestamp(Result error, std::chrono::seconds time,
17 std::function<void()> finished) const { 17 std::function<void()> finished) const {
18 LOG_CRITICAL( 18 LOG_CRITICAL(
19 Service_Fatal, 19 Service_Fatal,
@@ -21,7 +21,7 @@ void DefaultErrorApplet::ShowErrorWithTimestamp(ResultCode error, std::chrono::s
21 error.module.Value(), error.description.Value(), error.raw, time.count()); 21 error.module.Value(), error.description.Value(), error.raw, time.count());
22} 22}
23 23
24void DefaultErrorApplet::ShowCustomErrorText(ResultCode error, std::string main_text, 24void DefaultErrorApplet::ShowCustomErrorText(Result error, std::string main_text,
25 std::string detail_text, 25 std::string detail_text,
26 std::function<void()> finished) const { 26 std::function<void()> finished) const {
27 LOG_CRITICAL(Service_Fatal, 27 LOG_CRITICAL(Service_Fatal,
diff --git a/src/core/frontend/applets/error.h b/src/core/frontend/applets/error.h
index 8a1134561..f378f8805 100644
--- a/src/core/frontend/applets/error.h
+++ b/src/core/frontend/applets/error.h
@@ -14,22 +14,22 @@ class ErrorApplet {
14public: 14public:
15 virtual ~ErrorApplet(); 15 virtual ~ErrorApplet();
16 16
17 virtual void ShowError(ResultCode error, std::function<void()> finished) const = 0; 17 virtual void ShowError(Result error, std::function<void()> finished) const = 0;
18 18
19 virtual void ShowErrorWithTimestamp(ResultCode error, std::chrono::seconds time, 19 virtual void ShowErrorWithTimestamp(Result error, std::chrono::seconds time,
20 std::function<void()> finished) const = 0; 20 std::function<void()> finished) const = 0;
21 21
22 virtual void ShowCustomErrorText(ResultCode error, std::string dialog_text, 22 virtual void ShowCustomErrorText(Result error, std::string dialog_text,
23 std::string fullscreen_text, 23 std::string fullscreen_text,
24 std::function<void()> finished) const = 0; 24 std::function<void()> finished) const = 0;
25}; 25};
26 26
27class DefaultErrorApplet final : public ErrorApplet { 27class DefaultErrorApplet final : public ErrorApplet {
28public: 28public:
29 void ShowError(ResultCode error, std::function<void()> finished) const override; 29 void ShowError(Result error, std::function<void()> finished) const override;
30 void ShowErrorWithTimestamp(ResultCode error, std::chrono::seconds time, 30 void ShowErrorWithTimestamp(Result error, std::chrono::seconds time,
31 std::function<void()> finished) const override; 31 std::function<void()> finished) const override;
32 void ShowCustomErrorText(ResultCode error, std::string main_text, std::string detail_text, 32 void ShowCustomErrorText(Result error, std::string main_text, std::string detail_text,
33 std::function<void()> finished) const override; 33 std::function<void()> finished) const override;
34}; 34};
35 35