Added stub for ldr:ro service...
This commit is contained in:
parent
6b51683bb1
commit
6117fad036
|
@ -47,6 +47,7 @@ set(SRCS
|
||||||
hle/service/hid_user.cpp
|
hle/service/hid_user.cpp
|
||||||
hle/service/ir_rst.cpp
|
hle/service/ir_rst.cpp
|
||||||
hle/service/ir_u.cpp
|
hle/service/ir_u.cpp
|
||||||
|
hle/service/ldr_ro.cpp
|
||||||
hle/service/mic_u.cpp
|
hle/service/mic_u.cpp
|
||||||
hle/service/ndm_u.cpp
|
hle/service/ndm_u.cpp
|
||||||
hle/service/nwm_uds.cpp
|
hle/service/nwm_uds.cpp
|
||||||
|
@ -127,6 +128,7 @@ set(HEADERS
|
||||||
hle/service/hid_user.h
|
hle/service/hid_user.h
|
||||||
hle/service/ir_rst.h
|
hle/service/ir_rst.h
|
||||||
hle/service/ir_u.h
|
hle/service/ir_u.h
|
||||||
|
hle/service/ldr_ro.h
|
||||||
hle/service/mic_u.h
|
hle/service/mic_u.h
|
||||||
hle/service/ndm_u.h
|
hle/service/ndm_u.h
|
||||||
hle/service/nwm_uds.h
|
hle/service/nwm_uds.h
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
// Copyright 2014 Citra Emulator Project
|
||||||
|
// Licensed under GPLv2+
|
||||||
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
|
#include "common/log.h"
|
||||||
|
#include "core/hle/hle.h"
|
||||||
|
#include "core/hle/service/ldr_ro.h"
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Namespace LDR_RO
|
||||||
|
|
||||||
|
namespace LDR_RO {
|
||||||
|
|
||||||
|
const Interface::FunctionInfo FunctionTable[] = {
|
||||||
|
{0x000100C2, nullptr, "Initialize"},
|
||||||
|
{0x00020082, nullptr, "CRR_Load"},
|
||||||
|
{0x00030042, nullptr, "CRR_Unload"},
|
||||||
|
{0x000402C2, nullptr, "CRO_LoadAndFix"},
|
||||||
|
{0x000500C2, nullptr, "CRO_ApplyRelocationPatchesAndLink"}
|
||||||
|
};
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Interface class
|
||||||
|
|
||||||
|
Interface::Interface() {
|
||||||
|
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace
|
|
@ -0,0 +1,27 @@
|
||||||
|
// Copyright 2014 Citra Emulator Project
|
||||||
|
// Licensed under GPLv2+
|
||||||
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "core/hle/service/service.h"
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Namespace LDR_RO
|
||||||
|
|
||||||
|
namespace LDR_RO {
|
||||||
|
|
||||||
|
class Interface : public Service::Interface {
|
||||||
|
public:
|
||||||
|
Interface();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the string port name used by CTROS for the service
|
||||||
|
* @return Port name of service
|
||||||
|
*/
|
||||||
|
std::string GetPortName() const override {
|
||||||
|
return "ldr:ro";
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace
|
|
@ -22,6 +22,7 @@
|
||||||
#include "core/hle/service/hid_user.h"
|
#include "core/hle/service/hid_user.h"
|
||||||
#include "core/hle/service/ir_rst.h"
|
#include "core/hle/service/ir_rst.h"
|
||||||
#include "core/hle/service/ir_u.h"
|
#include "core/hle/service/ir_u.h"
|
||||||
|
#include "core/hle/service/ldr_ro.h"
|
||||||
#include "core/hle/service/mic_u.h"
|
#include "core/hle/service/mic_u.h"
|
||||||
#include "core/hle/service/ndm_u.h"
|
#include "core/hle/service/ndm_u.h"
|
||||||
#include "core/hle/service/nwm_uds.h"
|
#include "core/hle/service/nwm_uds.h"
|
||||||
|
@ -100,6 +101,7 @@ void Init() {
|
||||||
g_manager->AddService(new HID_User::Interface);
|
g_manager->AddService(new HID_User::Interface);
|
||||||
g_manager->AddService(new IR_RST::Interface);
|
g_manager->AddService(new IR_RST::Interface);
|
||||||
g_manager->AddService(new IR_U::Interface);
|
g_manager->AddService(new IR_U::Interface);
|
||||||
|
g_manager->AddService(new LDR_RO::Interface);
|
||||||
g_manager->AddService(new MIC_U::Interface);
|
g_manager->AddService(new MIC_U::Interface);
|
||||||
g_manager->AddService(new NDM_U::Interface);
|
g_manager->AddService(new NDM_U::Interface);
|
||||||
g_manager->AddService(new NWM_UDS::Interface);
|
g_manager->AddService(new NWM_UDS::Interface);
|
||||||
|
|
Reference in New Issue