summaryrefslogtreecommitdiffstats
path: root/src/core/frontend/applets
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2022-11-13 22:14:08 +0100
committergerman77 <juangerman-13@hotmail.com>2022-11-14 00:13:43 +0100
commit75e6ec85e107d6e5422d882b97faaa813970d42e (patch)
treefede32c546409e0f876c9ba7142da39eb4caf9c1 /src/core/frontend/applets
parentservice: am: Fix cabinet applet result (diff)
downloadyuzu-75e6ec85e107d6e5422d882b97faaa813970d42e.tar
yuzu-75e6ec85e107d6e5422d882b97faaa813970d42e.tar.gz
yuzu-75e6ec85e107d6e5422d882b97faaa813970d42e.tar.bz2
yuzu-75e6ec85e107d6e5422d882b97faaa813970d42e.tar.lz
yuzu-75e6ec85e107d6e5422d882b97faaa813970d42e.tar.xz
yuzu-75e6ec85e107d6e5422d882b97faaa813970d42e.tar.zst
yuzu-75e6ec85e107d6e5422d882b97faaa813970d42e.zip
Diffstat (limited to 'src/core/frontend/applets')
-rw-r--r--src/core/frontend/applets/cabinet.cpp2
-rw-r--r--src/core/frontend/applets/cabinet.h7
2 files changed, 5 insertions, 4 deletions
diff --git a/src/core/frontend/applets/cabinet.cpp b/src/core/frontend/applets/cabinet.cpp
index 5ade75de0..26c7fefe3 100644
--- a/src/core/frontend/applets/cabinet.cpp
+++ b/src/core/frontend/applets/cabinet.cpp
@@ -11,7 +11,7 @@ namespace Core::Frontend {
CabinetApplet::~CabinetApplet() = default;
void DefaultCabinetApplet::ShowCabinetApplet(
- std::function<void(bool, const std::string&)> callback, const CabinetParameters& parameters,
+ const CabinetCallback& callback, const CabinetParameters& parameters,
std::shared_ptr<Service::NFP::NfpDevice> nfp_device) const {
LOG_WARNING(Service_AM, "(STUBBED) called");
callback(false, {});
diff --git a/src/core/frontend/applets/cabinet.h b/src/core/frontend/applets/cabinet.h
index 1c68bf57d..c28a235c1 100644
--- a/src/core/frontend/applets/cabinet.h
+++ b/src/core/frontend/applets/cabinet.h
@@ -18,18 +18,19 @@ struct CabinetParameters {
Service::NFP::CabinetMode mode;
};
+using CabinetCallback = std::function<void(bool, const std::string&)>;
+
class CabinetApplet {
public:
virtual ~CabinetApplet();
- virtual void ShowCabinetApplet(std::function<void(bool, const std::string&)> callback,
+ virtual void ShowCabinetApplet(const CabinetCallback& callback,
const CabinetParameters& parameters,
std::shared_ptr<Service::NFP::NfpDevice> nfp_device) const = 0;
};
class DefaultCabinetApplet final : public CabinetApplet {
public:
- void ShowCabinetApplet(std::function<void(bool, const std::string&)> callback,
- const CabinetParameters& parameters,
+ void ShowCabinetApplet(const CabinetCallback& callback, const CabinetParameters& parameters,
std::shared_ptr<Service::NFP::NfpDevice> nfp_device) const override;
};