summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-12-06 00:52:52 +0100
committerLioncash <mathew1800@gmail.com>2022-12-06 01:06:04 +0100
commit2b40cdf04f52c4cb4612703c6bd78fd972f029d9 (patch)
treea7b72e2f8f8c7a78a547eb4b4fcdad3e0e65a409 /src
parentapplets/profile_select: Use aliases for callbacks (diff)
downloadyuzu-2b40cdf04f52c4cb4612703c6bd78fd972f029d9.tar
yuzu-2b40cdf04f52c4cb4612703c6bd78fd972f029d9.tar.gz
yuzu-2b40cdf04f52c4cb4612703c6bd78fd972f029d9.tar.bz2
yuzu-2b40cdf04f52c4cb4612703c6bd78fd972f029d9.tar.lz
yuzu-2b40cdf04f52c4cb4612703c6bd78fd972f029d9.tar.xz
yuzu-2b40cdf04f52c4cb4612703c6bd78fd972f029d9.tar.zst
yuzu-2b40cdf04f52c4cb4612703c6bd78fd972f029d9.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/frontend/applets/mii_edit.cpp2
-rw-r--r--src/core/frontend/applets/mii_edit.h6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/core/frontend/applets/mii_edit.cpp b/src/core/frontend/applets/mii_edit.cpp
index d37b5368a..bc8c57067 100644
--- a/src/core/frontend/applets/mii_edit.cpp
+++ b/src/core/frontend/applets/mii_edit.cpp
@@ -8,7 +8,7 @@ namespace Core::Frontend {
MiiEditApplet::~MiiEditApplet() = default;
-void DefaultMiiEditApplet::ShowMiiEdit(const std::function<void()>& callback) const {
+void DefaultMiiEditApplet::ShowMiiEdit(const MiiEditCallback& callback) const {
LOG_WARNING(Service_AM, "(STUBBED) called");
callback();
diff --git a/src/core/frontend/applets/mii_edit.h b/src/core/frontend/applets/mii_edit.h
index 58fa2039b..d828f06ec 100644
--- a/src/core/frontend/applets/mii_edit.h
+++ b/src/core/frontend/applets/mii_edit.h
@@ -9,14 +9,16 @@ namespace Core::Frontend {
class MiiEditApplet {
public:
+ using MiiEditCallback = std::function<void()>;
+
virtual ~MiiEditApplet();
- virtual void ShowMiiEdit(const std::function<void()>& callback) const = 0;
+ virtual void ShowMiiEdit(const MiiEditCallback& callback) const = 0;
};
class DefaultMiiEditApplet final : public MiiEditApplet {
public:
- void ShowMiiEdit(const std::function<void()>& callback) const override;
+ void ShowMiiEdit(const MiiEditCallback& callback) const override;
};
} // namespace Core::Frontend