Added stub for nim:aoc service...

This commit is contained in:
archshift 2014-12-14 22:55:51 -08:00
parent 1356a6b313
commit 89eef9eb6d
4 changed files with 62 additions and 0 deletions

View file

@ -50,6 +50,7 @@ set(SRCS
hle/service/ir_u.cpp hle/service/ir_u.cpp
hle/service/ldr_ro.cpp hle/service/ldr_ro.cpp
hle/service/mic_u.cpp hle/service/mic_u.cpp
hle/service/nim_aoc.cpp
hle/service/ndm_u.cpp hle/service/ndm_u.cpp
hle/service/nwm_uds.cpp hle/service/nwm_uds.cpp
hle/service/pm_app.cpp hle/service/pm_app.cpp
@ -132,6 +133,7 @@ set(HEADERS
hle/service/ir_u.h hle/service/ir_u.h
hle/service/ldr_ro.h hle/service/ldr_ro.h
hle/service/mic_u.h hle/service/mic_u.h
hle/service/nim_aoc.h
hle/service/ndm_u.h hle/service/ndm_u.h
hle/service/nwm_uds.h hle/service/nwm_uds.h
hle/service/pm_app.h hle/service/pm_app.h

View file

@ -0,0 +1,31 @@
// 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/nim_aoc.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
// Namespace NIM_AOC
namespace NIM_AOC {
const Interface::FunctionInfo FunctionTable[] = {
{0x00030042, nullptr, "SetApplicationId"},
{0x00040042, nullptr, "SetTin"},
{0x000902D0, nullptr, "ListContentSetsEx"},
{0x00180000, nullptr, "GetBalance"},
{0x001D0000, nullptr, "GetCustomerSupportCode"},
{0x00210000, nullptr, "Initialize"},
{0x00240282, nullptr, "CalculateContentsRequiredSize"},
{0x00250000, nullptr, "RefreshServerTime"},
};
////////////////////////////////////////////////////////////////////////////////////////////////////
// Interface class
Interface::Interface() {
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
}
} // namespace

View file

@ -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 NIM_AOC
namespace NIM_AOC {
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 "nim:aoc";
}
};
} // namespace

View file

@ -25,6 +25,7 @@
#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/ldr_ro.h"
#include "core/hle/service/mic_u.h" #include "core/hle/service/mic_u.h"
#include "core/hle/service/nim_aoc.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"
#include "core/hle/service/pm_app.h" #include "core/hle/service/pm_app.h"
@ -105,6 +106,7 @@ void Init() {
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 LDR_RO::Interface);
g_manager->AddService(new MIC_U::Interface); g_manager->AddService(new MIC_U::Interface);
g_manager->AddService(new NIM_AOC::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);
g_manager->AddService(new PM_APP::Interface); g_manager->AddService(new PM_APP::Interface);