2018-01-13 16:22:39 -05:00
|
|
|
// Copyright 2018 yuzu emulator team
|
2017-10-14 22:50:04 -04:00
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
|
|
#include "core/hle/ipc_helpers.h"
|
|
|
|
|
#include "core/hle/service/apm/apm.h"
|
2018-02-09 23:17:37 -05:00
|
|
|
#include "core/hle/service/apm/interface.h"
|
2017-10-14 22:50:04 -04:00
|
|
|
|
2018-04-19 21:41:44 -04:00
|
|
|
namespace Service::APM {
|
2017-10-14 22:50:04 -04:00
|
|
|
|
2018-09-10 21:20:52 -04:00
|
|
|
Module::Module() = default;
|
|
|
|
|
Module::~Module() = default;
|
|
|
|
|
|
2019-06-28 22:44:30 -04:00
|
|
|
void InstallInterfaces(Core::System& system) {
|
2018-02-09 23:17:37 -05:00
|
|
|
auto module_ = std::make_shared<Module>();
|
2019-06-28 22:44:30 -04:00
|
|
|
std::make_shared<APM>(module_, system.GetAPMController(), "apm")
|
|
|
|
|
->InstallAsService(system.ServiceManager());
|
|
|
|
|
std::make_shared<APM>(module_, system.GetAPMController(), "apm:p")
|
|
|
|
|
->InstallAsService(system.ServiceManager());
|
|
|
|
|
std::make_shared<APM>(module_, system.GetAPMController(), "apm:am")
|
|
|
|
|
->InstallAsService(system.ServiceManager());
|
|
|
|
|
std::make_shared<APM_Sys>(system.GetAPMController())->InstallAsService(system.ServiceManager());
|
2018-01-15 17:19:32 -05:00
|
|
|
}
|
|
|
|
|
|
2018-04-19 21:41:44 -04:00
|
|
|
} // namespace Service::APM
|