diff options
author | bunnei <bunneidev@gmail.com> | 2022-03-23 05:56:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-23 05:56:42 +0100 |
commit | 749efbb84b67043fb3aa1ce7832bf798bf393b59 (patch) | |
tree | b38842bf7cbba447224cfce4f16d4de6aac59e9f /src/core/hle/service/am/applets/applet_mii_edit.h | |
parent | Merge pull request #8070 from yuzu-emu/revert-8016-kill-mem-use (diff) | |
parent | applets/mii: Remove unused include (diff) | |
download | yuzu-749efbb84b67043fb3aa1ce7832bf798bf393b59.tar yuzu-749efbb84b67043fb3aa1ce7832bf798bf393b59.tar.gz yuzu-749efbb84b67043fb3aa1ce7832bf798bf393b59.tar.bz2 yuzu-749efbb84b67043fb3aa1ce7832bf798bf393b59.tar.lz yuzu-749efbb84b67043fb3aa1ce7832bf798bf393b59.tar.xz yuzu-749efbb84b67043fb3aa1ce7832bf798bf393b59.tar.zst yuzu-749efbb84b67043fb3aa1ce7832bf798bf393b59.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/am/applets/applet_mii_edit.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/core/hle/service/am/applets/applet_mii_edit.h b/src/core/hle/service/am/applets/applet_mii_edit.h new file mode 100644 index 000000000..e9ca0e2af --- /dev/null +++ b/src/core/hle/service/am/applets/applet_mii_edit.h @@ -0,0 +1,45 @@ +// Copyright 2022 yuzu Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "core/hle/result.h" +#include "core/hle/service/am/applets/applet_mii_edit_types.h" +#include "core/hle/service/am/applets/applets.h" + +namespace Core { +class System; +} // namespace Core + +namespace Service::AM::Applets { + +class MiiEdit final : public Applet { +public: + explicit MiiEdit(Core::System& system_, LibraryAppletMode applet_mode_, + const Core::Frontend::MiiEditApplet& frontend_); + ~MiiEdit() override; + + void Initialize() override; + + bool TransactionComplete() const override; + ResultCode GetStatus() const override; + void ExecuteInteractive() override; + void Execute() override; + + void MiiEditOutput(MiiEditResult result, s32 index); + + void MiiEditOutputForCharInfoEditing(MiiEditResult result, const MiiEditCharInfo& char_info); + +private: + const Core::Frontend::MiiEditApplet& frontend; + Core::System& system; + + MiiEditAppletInputCommon applet_input_common{}; + MiiEditAppletInputV3 applet_input_v3{}; + MiiEditAppletInputV4 applet_input_v4{}; + + bool is_complete{false}; +}; + +} // namespace Service::AM::Applets |