mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
35 lines
874 B
C++
35 lines
874 B
C++
|
// Copyright 2022 yuzu Emulator Project
|
||
|
// Licensed under GPLv2 or any later version
|
||
|
// Refer to the license.txt file included.
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <functional>
|
||
|
|
||
|
#include "core/hle/service/mii/mii_manager.h"
|
||
|
|
||
|
namespace Core::Frontend {
|
||
|
|
||
|
struct MiiParameters {
|
||
|
bool is_editable;
|
||
|
Service::Mii::MiiInfo mii_data{};
|
||
|
};
|
||
|
|
||
|
class MiiApplet {
|
||
|
public:
|
||
|
virtual ~MiiApplet();
|
||
|
|
||
|
virtual void ShowMii(const MiiParameters& parameters,
|
||
|
const std::function<void(const Core::Frontend::MiiParameters& parameters)>
|
||
|
callback) const = 0;
|
||
|
};
|
||
|
|
||
|
class DefaultMiiApplet final : public MiiApplet {
|
||
|
public:
|
||
|
void ShowMii(const MiiParameters& parameters,
|
||
|
const std::function<void(const Core::Frontend::MiiParameters& parameters)>
|
||
|
callback) const override;
|
||
|
};
|
||
|
|
||
|
} // namespace Core::Frontend
|