summaryrefslogtreecommitdiffstats
path: root/src/core/frontend/applets/mii_edit.h
blob: 247ccd461dbc43e06ec21ad6958e7dddfa1e34f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// 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/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<void(const Core::Frontend::MiiParameters& parameters)>
                             callback) const = 0;
};

class DefaultMiiEditApplet final : public MiiEditApplet {
public:
    void ShowMii(const MiiParameters& parameters,
                 const std::function<void(const Core::Frontend::MiiParameters& parameters)>
                     callback) const override;
};

} // namespace Core::Frontend