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