From bcca849d0c68d50690711fe17480cfcda624f2c2 Mon Sep 17 00:00:00 2001 From: Morph <39850852+Morph1984@users.noreply.github.com> Date: Thu, 17 Mar 2022 05:19:25 -0400 Subject: [PATCH] applets/mii: Remove frontend parameters These are unused for now as we do not support a frontend implementation. --- src/core/frontend/applets/mii_edit.cpp | 6 ++---- src/core/frontend/applets/mii_edit.h | 15 ++------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/src/core/frontend/applets/mii_edit.cpp b/src/core/frontend/applets/mii_edit.cpp index 948d66f3db..fadb5fb15f 100644 --- a/src/core/frontend/applets/mii_edit.cpp +++ b/src/core/frontend/applets/mii_edit.cpp @@ -9,12 +9,10 @@ namespace Core::Frontend { MiiEditApplet::~MiiEditApplet() = default; -void DefaultMiiEditApplet::ShowMii( - const MiiParameters& parameters, - const std::function callback) const { +void DefaultMiiEditApplet::ShowMiiEdit(const std::function& callback) const { LOG_WARNING(Service_AM, "(STUBBED) called"); - callback(parameters); + callback(); } } // namespace Core::Frontend diff --git a/src/core/frontend/applets/mii_edit.h b/src/core/frontend/applets/mii_edit.h index 247ccd461d..cca0e931db 100644 --- a/src/core/frontend/applets/mii_edit.h +++ b/src/core/frontend/applets/mii_edit.h @@ -6,29 +6,18 @@ #include -#include "core/hle/service/mii/types.h" - namespace Core::Frontend { -struct MiiParameters { - bool is_editable; - Service::Mii::MiiInfo mii_data{}; -}; - class MiiEditApplet { public: virtual ~MiiEditApplet(); - virtual void ShowMii(const MiiParameters& parameters, - const std::function - callback) const = 0; + virtual void ShowMiiEdit(const std::function& callback) const = 0; }; class DefaultMiiEditApplet final : public MiiEditApplet { public: - void ShowMii(const MiiParameters& parameters, - const std::function - callback) const override; + void ShowMiiEdit(const std::function& callback) const override; }; } // namespace Core::Frontend