mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-10-31 20:37:52 +00:00
Rebase
This commit is contained in:
parent
d6e830d877
commit
36a97dd8a2
2 changed files with 12 additions and 8 deletions
|
@ -15,7 +15,7 @@ namespace Service::PlayReport {
|
|||
|
||||
class PlayReport final : public ServiceFramework<PlayReport> {
|
||||
public:
|
||||
explicit PlayReport(Core::System& system, const char* name)
|
||||
explicit PlayReport(const char* name, Core::System& system)
|
||||
: ServiceFramework{name}, system(system) {
|
||||
// clang-format off
|
||||
static const FunctionInfo functions[] = {
|
||||
|
@ -128,12 +128,12 @@ private:
|
|||
Core::System& system;
|
||||
};
|
||||
|
||||
void InstallInterfaces(Core::System& system) {
|
||||
std::make_shared<PlayReport>(system, "prepo:a")->InstallAsService(system.ServiceManager());
|
||||
std::make_shared<PlayReport>(system, "prepo:a2")->InstallAsService(system.ServiceManager());
|
||||
std::make_shared<PlayReport>(system, "prepo:m")->InstallAsService(system.ServiceManager());
|
||||
std::make_shared<PlayReport>(system, "prepo:s")->InstallAsService(system.ServiceManager());
|
||||
std::make_shared<PlayReport>(system, "prepo:u")->InstallAsService(system.ServiceManager());
|
||||
void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system) {
|
||||
std::make_shared<PlayReport>("prepo:a", system)->InstallAsService(service_manager);
|
||||
std::make_shared<PlayReport>("prepo:a2", system)->InstallAsService(service_manager);
|
||||
std::make_shared<PlayReport>("prepo:m", system)->InstallAsService(service_manager);
|
||||
std::make_shared<PlayReport>("prepo:s", system)->InstallAsService(service_manager);
|
||||
std::make_shared<PlayReport>("prepo:u", system)->InstallAsService(service_manager);
|
||||
}
|
||||
|
||||
} // namespace Service::PlayReport
|
||||
|
|
|
@ -8,8 +8,12 @@ namespace Service::SM {
|
|||
class ServiceManager;
|
||||
}
|
||||
|
||||
namespace Core {
|
||||
class System;
|
||||
}
|
||||
|
||||
namespace Service::PlayReport {
|
||||
|
||||
void InstallInterfaces(Core::System& system);
|
||||
void InstallInterfaces(SM::ServiceManager& service_manager, Core::System& system);
|
||||
|
||||
} // namespace Service::PlayReport
|
||||
|
|
Loading…
Reference in a new issue