Browse Source
Merge pull request #282 from archshift/services
Merge pull request #282 from archshift/services
Added stubs for ldr:ro, cecd:u, nim:aoc, and am:app servicespull/15/merge
10 changed files with 229 additions and 0 deletions
-
8src/core/CMakeLists.txt
-
23src/core/hle/service/am_app.cpp
-
27src/core/hle/service/am_app.h
-
23src/core/hle/service/cecd_u.cpp
-
27src/core/hle/service/cecd_u.h
-
28src/core/hle/service/ldr_ro.cpp
-
27src/core/hle/service/ldr_ro.h
-
31src/core/hle/service/nim_aoc.cpp
-
27src/core/hle/service/nim_aoc.h
-
8src/core/hle/service/service.cpp
@ -0,0 +1,23 @@ |
|||
// 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/am_app.h"
|
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Namespace AM_APP
|
|||
|
|||
namespace AM_APP { |
|||
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
}; |
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// 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 AM_APP |
|||
|
|||
namespace AM_APP { |
|||
|
|||
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 "am:app"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace |
|||
@ -0,0 +1,23 @@ |
|||
// 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/cecd_u.h"
|
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Namespace CECD_U
|
|||
|
|||
namespace CECD_U { |
|||
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
}; |
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// 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 CECD_U |
|||
|
|||
namespace CECD_U { |
|||
|
|||
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 "cecd:u"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace |
|||
@ -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 |
|||
@ -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
|
|||
@ -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 |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue