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 "common/logging/log.h"
|
|
|
|
#include "core/hle/ipc_helpers.h"
|
|
|
|
#include "core/hle/service/apm/apm.h"
|
|
|
|
|
|
|
|
namespace Service {
|
|
|
|
namespace APM {
|
|
|
|
|
|
|
|
void InstallInterfaces(SM::ServiceManager& service_manager) {
|
|
|
|
std::make_shared<APM>()->InstallAsService(service_manager);
|
|
|
|
}
|
|
|
|
|
|
|
|
APM::APM() : ServiceFramework("apm") {
|
|
|
|
static const FunctionInfo functions[] = {
|
2018-01-16 13:05:21 -05:00
|
|
|
{0x00000000, nullptr, "OpenSession"}, {0x00000001, nullptr, "GetPerformanceMode"},
|
2017-10-14 22:50:04 -04:00
|
|
|
};
|
|
|
|
RegisterHandlers(functions);
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace APM
|
|
|
|
} // namespace Service
|