2022-02-28 05:18:37 +00:00
|
|
|
// Copyright 2022 yuzu Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
|
2022-03-17 07:48:31 +00:00
|
|
|
#include "core/hle/service/mii/types.h"
|
2022-02-28 05:18:37 +00:00
|
|
|
|
|
|
|
namespace Core::Frontend {
|
|
|
|
|
|
|
|
struct MiiParameters {
|
|
|
|
bool is_editable;
|
|
|
|
Service::Mii::MiiInfo mii_data{};
|
|
|
|
};
|
|
|
|
|
2022-03-17 07:01:03 +00:00
|
|
|
class MiiEditApplet {
|
2022-02-28 05:18:37 +00:00
|
|
|
public:
|
2022-03-17 07:01:03 +00:00
|
|
|
virtual ~MiiEditApplet();
|
2022-02-28 05:18:37 +00:00
|
|
|
|
|
|
|
virtual void ShowMii(const MiiParameters& parameters,
|
|
|
|
const std::function<void(const Core::Frontend::MiiParameters& parameters)>
|
|
|
|
callback) const = 0;
|
|
|
|
};
|
|
|
|
|
2022-03-17 07:01:03 +00:00
|
|
|
class DefaultMiiEditApplet final : public MiiEditApplet {
|
2022-02-28 05:18:37 +00:00
|
|
|
public:
|
|
|
|
void ShowMii(const MiiParameters& parameters,
|
|
|
|
const std::function<void(const Core::Frontend::MiiParameters& parameters)>
|
|
|
|
callback) const override;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Core::Frontend
|