mirror of https://github.com/yuzu-mirror/yuzu
hle: Add service stubs for apm and appletOE.
parent
960a1416de
commit
72eeca1f03
@ -0,0 +1,18 @@
|
|||||||
|
// Copyright 2017 Citra Emulator Project
|
||||||
|
// 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/am/am.h"
|
||||||
|
#include "core/hle/service/am/applet_oe.h"
|
||||||
|
|
||||||
|
namespace Service {
|
||||||
|
namespace AM {
|
||||||
|
|
||||||
|
void InstallInterfaces(SM::ServiceManager& service_manager) {
|
||||||
|
std::make_shared<AppletOE>()->InstallAsService(service_manager);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace AM
|
||||||
|
} // namespace Service
|
@ -0,0 +1,16 @@
|
|||||||
|
// Copyright 2017 Citra Emulator Project
|
||||||
|
// Licensed under GPLv2 or any later version
|
||||||
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "core/hle/service/service.h"
|
||||||
|
|
||||||
|
namespace Service {
|
||||||
|
namespace AM {
|
||||||
|
|
||||||
|
/// Registers all AM services with the specified service manager.
|
||||||
|
void InstallInterfaces(SM::ServiceManager& service_manager);
|
||||||
|
|
||||||
|
} // namespace AM
|
||||||
|
} // namespace Service
|
@ -0,0 +1,22 @@
|
|||||||
|
// Copyright 2017 Citra Emulator Project
|
||||||
|
// 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/am/applet_oe.h"
|
||||||
|
|
||||||
|
namespace Service {
|
||||||
|
namespace AM {
|
||||||
|
|
||||||
|
AppletOE::AppletOE() : ServiceFramework("appletOE") {
|
||||||
|
static const FunctionInfo functions[] = {
|
||||||
|
{0x00000000, nullptr, "OpenApplicationProxy"},
|
||||||
|
};
|
||||||
|
RegisterHandlers(functions);
|
||||||
|
}
|
||||||
|
|
||||||
|
AppletOE::~AppletOE() = default;
|
||||||
|
|
||||||
|
} // namespace AM
|
||||||
|
} // namespace Service
|
@ -0,0 +1,19 @@
|
|||||||
|
// Copyright 2017 Citra Emulator Project
|
||||||
|
// Licensed under GPLv2 or any later version
|
||||||
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "core/hle/service/service.h"
|
||||||
|
|
||||||
|
namespace Service {
|
||||||
|
namespace AM {
|
||||||
|
|
||||||
|
class AppletOE final : public ServiceFramework<AppletOE> {
|
||||||
|
public:
|
||||||
|
explicit AppletOE();
|
||||||
|
~AppletOE();
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace AM
|
||||||
|
} // namespace Service
|
@ -0,0 +1,27 @@
|
|||||||
|
// Copyright 2017 Citra Emulator Project
|
||||||
|
// 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[] = {
|
||||||
|
{0x00000000, nullptr, "OpenSession"},
|
||||||
|
{0x00000001, nullptr, "GetPerformanceMode"},
|
||||||
|
};
|
||||||
|
RegisterHandlers(functions);
|
||||||
|
}
|
||||||
|
|
||||||
|
APM::~APM() = default;
|
||||||
|
|
||||||
|
} // namespace APM
|
||||||
|
} // namespace Service
|
@ -0,0 +1,22 @@
|
|||||||
|
// Copyright 2017 Citra Emulator Project
|
||||||
|
// Licensed under GPLv2 or any later version
|
||||||
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "core/hle/service/service.h"
|
||||||
|
|
||||||
|
namespace Service {
|
||||||
|
namespace APM {
|
||||||
|
|
||||||
|
class APM final : public ServiceFramework<APM> {
|
||||||
|
public:
|
||||||
|
explicit APM();
|
||||||
|
~APM();
|
||||||
|
};
|
||||||
|
|
||||||
|
/// Registers all AM services with the specified service manager.
|
||||||
|
void InstallInterfaces(SM::ServiceManager& service_manager);
|
||||||
|
|
||||||
|
} // namespace APM
|
||||||
|
} // namespace Service
|
Loading…
Reference in New Issue