diff options
| author | archshift <admin@archshift.com> | 2014-12-14 22:55:51 -0800 | 
|---|---|---|
| committer | archshift <admin@archshift.com> | 2014-12-15 15:32:42 -0800 | 
| commit | 89eef9eb6db81da44922b0968ea6705412b12ca6 (patch) | |
| tree | 275376c926139351991298d165d045e00133b37c /src/core/hle | |
| parent | 1356a6b313cbf1d5c4570d957988a1e241a28699 (diff) | |
Added stub for nim:aoc service...
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/service/nim_aoc.cpp | 31 | ||||
| -rw-r--r-- | src/core/hle/service/nim_aoc.h | 27 | ||||
| -rw-r--r-- | src/core/hle/service/service.cpp | 2 | 
3 files changed, 60 insertions, 0 deletions
| diff --git a/src/core/hle/service/nim_aoc.cpp b/src/core/hle/service/nim_aoc.cpp new file mode 100644 index 000000000..04c1e0cf3 --- /dev/null +++ b/src/core/hle/service/nim_aoc.cpp @@ -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 diff --git a/src/core/hle/service/nim_aoc.h b/src/core/hle/service/nim_aoc.h new file mode 100644 index 000000000..2cc673118 --- /dev/null +++ b/src/core/hle/service/nim_aoc.h @@ -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 diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index 1b9822ddf..b33172932 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp @@ -25,6 +25,7 @@  #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/nim_aoc.h"  #include "core/hle/service/ndm_u.h"  #include "core/hle/service/nwm_uds.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 LDR_RO::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 NWM_UDS::Interface);      g_manager->AddService(new PM_APP::Interface); | 
