2022-04-23 04:59:50 -04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2018-07-27 15:39:30 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-09-21 10:54:04 -06:00
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
|
2020-11-26 15:19:08 -05:00
|
|
|
namespace Core {
|
|
|
|
class System;
|
|
|
|
}
|
|
|
|
|
2018-07-27 15:39:30 -04:00
|
|
|
namespace Service::Mii {
|
2023-09-21 10:54:04 -06:00
|
|
|
class MiiManager;
|
|
|
|
|
|
|
|
class MiiDBModule final : public ServiceFramework<MiiDBModule> {
|
|
|
|
public:
|
|
|
|
explicit MiiDBModule(Core::System& system_, const char* name_,
|
|
|
|
std::shared_ptr<MiiManager> mii_manager, bool is_system_);
|
|
|
|
~MiiDBModule() override;
|
|
|
|
|
|
|
|
std::shared_ptr<MiiManager> GetMiiManager();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void GetDatabaseService(HLERequestContext& ctx);
|
|
|
|
|
|
|
|
std::shared_ptr<MiiManager> manager = nullptr;
|
|
|
|
bool is_system{};
|
|
|
|
};
|
2018-07-27 15:39:30 -04:00
|
|
|
|
2023-02-18 16:26:48 -05:00
|
|
|
void LoopProcess(Core::System& system);
|
2018-07-27 15:39:30 -04:00
|
|
|
|
|
|
|
} // namespace Service::Mii
|