mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-28 06:16:23 -05:00
1a954b2a59
Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
27 lines
988 B
C++
27 lines
988 B
C++
// Copyright 2018 yuzu emulator team
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "core/core.h"
|
|
#include "core/hle/ipc_helpers.h"
|
|
#include "core/hle/service/apm/apm.h"
|
|
#include "core/hle/service/apm/interface.h"
|
|
|
|
namespace Service::APM {
|
|
|
|
Module::Module() = default;
|
|
Module::~Module() = default;
|
|
|
|
void InstallInterfaces(Core::System& system) {
|
|
auto module_ = std::make_shared<Module>();
|
|
std::make_shared<APM>(system, module_, system.GetAPMController(), "apm")
|
|
->InstallAsService(system.ServiceManager());
|
|
std::make_shared<APM>(system, module_, system.GetAPMController(), "apm:p")
|
|
->InstallAsService(system.ServiceManager());
|
|
std::make_shared<APM>(system, module_, system.GetAPMController(), "apm:am")
|
|
->InstallAsService(system.ServiceManager());
|
|
std::make_shared<APM_Sys>(system, system.GetAPMController())
|
|
->InstallAsService(system.ServiceManager());
|
|
}
|
|
|
|
} // namespace Service::APM
|