mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-12-27 05:36:42 +00:00
service: Add empty interface for pctl:a.
This commit is contained in:
parent
e17c0019c5
commit
fcd4c1a0dc
|
@ -56,6 +56,8 @@ set(SRCS
|
|||
hle/service/gsp_gpu.cpp
|
||||
hle/service/hid/hid.cpp
|
||||
hle/service/lm/lm.cpp
|
||||
hle/service/pctl/pctl.cpp
|
||||
hle/service/pctl/pctl_a.cpp
|
||||
hle/service/service.cpp
|
||||
hle/service/sm/controller.cpp
|
||||
hle/service/sm/sm.cpp
|
||||
|
@ -150,6 +152,8 @@ set(HEADERS
|
|||
hle/service/gsp_gpu.h
|
||||
hle/service/hid/hid.h
|
||||
hle/service/lm/lm.h
|
||||
hle/service/pctl/pctl.h
|
||||
hle/service/pctl/pctl_a.h
|
||||
hle/service/service.h
|
||||
hle/service/sm/controller.h
|
||||
hle/service/sm/sm.h
|
||||
|
|
16
src/core/hle/service/pctl/pctl.cpp
Normal file
16
src/core/hle/service/pctl/pctl.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2017 Citra Emulator Project
|
||||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include "core/hle/service/pctl/pctl.h"
|
||||
#include "core/hle/service/pctl/pctl_a.h"
|
||||
|
||||
namespace Service {
|
||||
namespace PCTL {
|
||||
|
||||
void InstallInterfaces(SM::ServiceManager& service_manager) {
|
||||
std::make_shared<PCTL_A>()->InstallAsService(service_manager);
|
||||
}
|
||||
|
||||
} // namespace PCTL
|
||||
} // namespace Service
|
16
src/core/hle/service/pctl/pctl.h
Normal file
16
src/core/hle/service/pctl/pctl.h
Normal file
|
@ -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 PCTL {
|
||||
|
||||
/// Registers all PCTL services with the specified service manager.
|
||||
void InstallInterfaces(SM::ServiceManager& service_manager);
|
||||
|
||||
} // namespace PCTL
|
||||
} // namespace Service
|
30
src/core/hle/service/pctl/pctl_a.cpp
Normal file
30
src/core/hle/service/pctl/pctl_a.cpp
Normal file
|
@ -0,0 +1,30 @@
|
|||
// 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/pctl/pctl_a.h"
|
||||
|
||||
namespace Service {
|
||||
namespace PCTL {
|
||||
|
||||
void InstallInterfaces(SM::ServiceManager& service_manager) {
|
||||
std::make_shared<PCTL_A>()->InstallAsService(service_manager);
|
||||
}
|
||||
|
||||
void PCTL_A::GetService(Kernel::HLERequestContext& ctx) {
|
||||
LOG_WARNING(Service, "(STUBBED) called");
|
||||
IPC::RequestBuilder rb{ctx, 1};
|
||||
rb.Push(RESULT_SUCCESS);
|
||||
}
|
||||
|
||||
PCTL_A::PCTL_A() : ServiceFramework("pctl:a") {
|
||||
static const FunctionInfo functions[] = {
|
||||
{0, &PCTL_A::GetService, "GetService"},
|
||||
};
|
||||
RegisterHandlers(functions);
|
||||
}
|
||||
|
||||
} // namespace PCTL
|
||||
} // namespace Service
|
22
src/core/hle/service/pctl/pctl_a.h
Normal file
22
src/core/hle/service/pctl/pctl_a.h
Normal file
|
@ -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 PCTL {
|
||||
|
||||
class PCTL_A final : public ServiceFramework<PCTL_A> {
|
||||
public:
|
||||
PCTL_A();
|
||||
~PCTL_A() = default;
|
||||
|
||||
private:
|
||||
void GetService(Kernel::HLERequestContext& ctx);
|
||||
};
|
||||
|
||||
} // namespace PCTL
|
||||
} // namespace Service
|
|
@ -22,6 +22,7 @@
|
|||
#include "core/hle/service/gsp_gpu.h"
|
||||
#include "core/hle/service/hid/hid.h"
|
||||
#include "core/hle/service/lm/lm.h"
|
||||
#include "core/hle/service/pctl/pctl.h"
|
||||
#include "core/hle/service/service.h"
|
||||
#include "core/hle/service/sm/controller.h"
|
||||
#include "core/hle/service/sm/sm.h"
|
||||
|
@ -173,6 +174,7 @@ void Init() {
|
|||
AOC::InstallInterfaces(*SM::g_service_manager);
|
||||
APM::InstallInterfaces(*SM::g_service_manager);
|
||||
LM::InstallInterfaces(*SM::g_service_manager);
|
||||
PCTL::InstallInterfaces(*SM::g_service_manager);
|
||||
|
||||
HID::Init();
|
||||
|
||||
|
|
Loading…
Reference in a new issue