75 changed files with 1190 additions and 637 deletions
-
1src/common/logging/backend.cpp
-
5src/common/logging/log.h
-
80src/core/CMakeLists.txt
-
55src/core/hle/service/am/am.cpp
-
47src/core/hle/service/am/am.h
-
20src/core/hle/service/am/am_app.cpp
-
22src/core/hle/service/am/am_app.h
-
17src/core/hle/service/am/am_net.cpp
-
22src/core/hle/service/am/am_net.h
-
22src/core/hle/service/am/am_sys.cpp
-
22src/core/hle/service/am/am_sys.h
-
22src/core/hle/service/am/am_u.cpp
-
22src/core/hle/service/am/am_u.h
-
23src/core/hle/service/am_app.cpp
-
23src/core/hle/service/am_app.h
-
23src/core/hle/service/am_net.h
-
62src/core/hle/service/am_sys.cpp
-
23src/core/hle/service/am_sys.h
-
29src/core/hle/service/boss/boss.cpp
-
20src/core/hle/service/boss/boss.h
-
20src/core/hle/service/boss/boss_p.cpp
-
22src/core/hle/service/boss/boss_p.h
-
21src/core/hle/service/boss/boss_u.cpp
-
22src/core/hle/service/boss/boss_u.h
-
23src/core/hle/service/boss_p.cpp
-
23src/core/hle/service/boss_p.h
-
24src/core/hle/service/boss_u.cpp
-
23src/core/hle/service/boss_u.h
-
35src/core/hle/service/cam/cam.cpp
-
20src/core/hle/service/cam/cam.h
-
20src/core/hle/service/cam/cam_c.cpp
-
22src/core/hle/service/cam/cam_c.h
-
20src/core/hle/service/cam/cam_q.cpp
-
22src/core/hle/service/cam/cam_q.h
-
20src/core/hle/service/cam/cam_s.cpp
-
22src/core/hle/service/cam/cam_s.h
-
20src/core/hle/service/cam/cam_u.cpp
-
22src/core/hle/service/cam/cam_u.h
-
23src/core/hle/service/cam_u.cpp
-
23src/core/hle/service/cam_u.h
-
31src/core/hle/service/cecd/cecd.cpp
-
20src/core/hle/service/cecd/cecd.h
-
20src/core/hle/service/cecd/cecd_s.cpp
-
13src/core/hle/service/cecd/cecd_s.h
-
20src/core/hle/service/cecd/cecd_u.cpp
-
13src/core/hle/service/cecd/cecd_u.h
-
23src/core/hle/service/cecd_s.cpp
-
23src/core/hle/service/cecd_u.cpp
-
29src/core/hle/service/frd/frd.cpp
-
20src/core/hle/service/frd/frd.h
-
20src/core/hle/service/frd/frd_a.cpp
-
13src/core/hle/service/frd/frd_a.h
-
17src/core/hle/service/frd/frd_u.cpp
-
13src/core/hle/service/frd/frd_u.h
-
23src/core/hle/service/frd_a.cpp
-
31src/core/hle/service/news/news.cpp
-
20src/core/hle/service/news/news.h
-
21src/core/hle/service/news/news_s.cpp
-
13src/core/hle/service/news/news_s.h
-
21src/core/hle/service/news/news_u.cpp
-
13src/core/hle/service/news/news_u.h
-
24src/core/hle/service/news_s.cpp
-
24src/core/hle/service/news_u.cpp
-
42src/core/hle/service/nim/nim.cpp
-
30src/core/hle/service/nim/nim.h
-
16src/core/hle/service/nim/nim_aoc.cpp
-
22src/core/hle/service/nim/nim_aoc.h
-
22src/core/hle/service/nim/nim_s.cpp
-
22src/core/hle/service/nim/nim_s.h
-
27src/core/hle/service/nim/nim_u.cpp
-
22src/core/hle/service/nim/nim_u.h
-
23src/core/hle/service/nim_aoc.h
-
48src/core/hle/service/nim_u.cpp
-
23src/core/hle/service/nim_u.h
-
58src/core/hle/service/service.cpp
@ -0,0 +1,55 @@ |
|||
// Copyright 2015 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/service/service.h"
|
|||
#include "core/hle/service/am/am_app.h"
|
|||
#include "core/hle/service/am/am_net.h"
|
|||
#include "core/hle/service/am/am_sys.h"
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/kernel/event.h"
|
|||
#include "core/hle/kernel/shared_memory.h"
|
|||
|
|||
namespace Service { |
|||
namespace AM { |
|||
|
|||
void TitleIDListGetTotal(Service::Interface* self) { |
|||
u32* cmd_buff = Kernel::GetCommandBuffer(); |
|||
u32 media_type = cmd_buff[1] & 0xFF; |
|||
|
|||
cmd_buff[1] = RESULT_SUCCESS.raw; |
|||
cmd_buff[2] = 0; |
|||
|
|||
LOG_WARNING(Service_AM, "(STUBBED) media_type %u", media_type); |
|||
} |
|||
|
|||
void GetTitleIDList(Service::Interface* self) { |
|||
u32* cmd_buff = Kernel::GetCommandBuffer(); |
|||
u32 num_titles = cmd_buff[1]; |
|||
u32 media_type = cmd_buff[2] & 0xFF; |
|||
u32 addr = cmd_buff[4]; |
|||
|
|||
cmd_buff[1] = RESULT_SUCCESS.raw; |
|||
cmd_buff[2] = 0; |
|||
|
|||
LOG_WARNING(Service_AM, "(STUBBED) Requested %u titles from media type %u", num_titles, media_type); |
|||
} |
|||
|
|||
void Init() { |
|||
using namespace Kernel; |
|||
|
|||
AddService(new AM_APP_Interface); |
|||
AddService(new AM_NET_Interface); |
|||
AddService(new AM_SYS_Interface); |
|||
} |
|||
|
|||
void Shutdown() { |
|||
|
|||
} |
|||
|
|||
} // namespace AM
|
|||
|
|||
} // namespace Service
|
|||
@ -0,0 +1,47 @@ |
|||
// Copyright 2015 Citra Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "core/hle/kernel/kernel.h" |
|||
#include "core/hle/service/service.h" |
|||
|
|||
namespace Service { |
|||
namespace AM { |
|||
|
|||
/** |
|||
* AM::TitleIDListGetTotal service function |
|||
* Gets the number of installed titles in the requested media type |
|||
* Inputs: |
|||
* 0 : Command header (0x00010040) |
|||
* 1 : Media type to load the titles from |
|||
* Outputs: |
|||
* 1 : Result, 0 on success, otherwise error code |
|||
* 2 : The number of titles in the requested media type |
|||
*/ |
|||
void TitleIDListGetTotal(Service::Interface* self); |
|||
|
|||
/** |
|||
* AM::GetTitleIDList service function |
|||
* Loads information about the desired number of titles from the desired media type into an array |
|||
* Inputs: |
|||
* 0 : Command header (0x00020082) |
|||
* 1 : The maximum number of titles to load |
|||
* 2 : Media type to load the titles from |
|||
* 3 : Descriptor of the output buffer pointer |
|||
* 4 : Address of the output buffer |
|||
* Outputs: |
|||
* 1 : Result, 0 on success, otherwise error code |
|||
* 2 : The number of titles loaded from the requested media type |
|||
*/ |
|||
void GetTitleIDList(Service::Interface* self); |
|||
|
|||
/// Initialize AM service |
|||
void Init(); |
|||
|
|||
/// Shutdown AM service |
|||
void Shutdown(); |
|||
|
|||
} // namespace AM |
|||
} // namespace Service |
|||
@ -0,0 +1,20 @@ |
|||
// Copyright 2014 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/am/am.h"
|
|||
#include "core/hle/service/am/am_app.h"
|
|||
|
|||
namespace Service { |
|||
namespace AM { |
|||
|
|||
// Empty arrays are illegal -- commented out until an entry is added.
|
|||
//const Interface::FunctionInfo FunctionTable[] = { };
|
|||
|
|||
AM_APP_Interface::AM_APP_Interface() { |
|||
//Register(FunctionTable);
|
|||
} |
|||
|
|||
} // namespace AM
|
|||
} // namespace Service
|
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2014 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 AM { |
|||
|
|||
class AM_APP_Interface : public Service::Interface { |
|||
public: |
|||
AM_APP_Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "am:app"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace AM |
|||
} // namespace Service |
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2014 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 AM { |
|||
|
|||
class AM_NET_Interface : public Service::Interface { |
|||
public: |
|||
AM_NET_Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "am:net"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace AM |
|||
} // namespace Service |
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/am/am.h"
|
|||
#include "core/hle/service/am/am_sys.h"
|
|||
|
|||
namespace Service { |
|||
namespace AM { |
|||
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
{0x00010040, TitleIDListGetTotal, "TitleIDListGetTotal"}, |
|||
{0x00020082, GetTitleIDList, "GetTitleIDList"}, |
|||
}; |
|||
|
|||
AM_SYS_Interface::AM_SYS_Interface() { |
|||
Register(FunctionTable); |
|||
} |
|||
|
|||
} // namespace AM
|
|||
} // namespace Service
|
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2015 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 AM { |
|||
|
|||
class AM_SYS_Interface : public Service::Interface { |
|||
public: |
|||
AM_SYS_Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "am:sys"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace AM |
|||
} // namespace Service |
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/am/am.h"
|
|||
#include "core/hle/service/am/am_u.h"
|
|||
|
|||
namespace Service { |
|||
namespace AM { |
|||
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
{0x00010040, TitleIDListGetTotal, "TitleIDListGetTotal"}, |
|||
{0x00020082, GetTitleIDList, "GetTitleIDList"}, |
|||
}; |
|||
|
|||
AM_U_Interface::AM_U_Interface() { |
|||
Register(FunctionTable); |
|||
} |
|||
|
|||
} // namespace AM
|
|||
} // namespace Service
|
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2015 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 AM { |
|||
|
|||
class AM_U_Interface : public Service::Interface { |
|||
public: |
|||
AM_U_Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "am:u"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace AM |
|||
} // namespace Service |
|||
@ -1,23 +0,0 @@ |
|||
// Copyright 2014 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/am_app.h"
|
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Namespace AM_APP
|
|||
|
|||
namespace AM_APP { |
|||
|
|||
// Empty arrays are illegal -- commented out until an entry is added.
|
|||
//const Interface::FunctionInfo FunctionTable[] = { };
|
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Interface class
|
|||
|
|||
Interface::Interface() { |
|||
//Register(FunctionTable);
|
|||
} |
|||
|
|||
} // namespace
|
|||
@ -1,23 +0,0 @@ |
|||
// Copyright 2014 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 AM_APP |
|||
|
|||
namespace AM_APP { |
|||
|
|||
class Interface : public Service::Interface { |
|||
public: |
|||
Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "am:app"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace |
|||
@ -1,23 +0,0 @@ |
|||
// Copyright 2014 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 AM_NET |
|||
|
|||
namespace AM_NET { |
|||
|
|||
class Interface : public Service::Interface { |
|||
public: |
|||
Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "am:net"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace |
|||
@ -1,62 +0,0 @@ |
|||
// Copyright 2015 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/hle.h"
|
|||
#include "core/hle/service/am_sys.h"
|
|||
|
|||
namespace AM_SYS { |
|||
|
|||
/**
|
|||
* Gets the number of installed titles in the requested media type |
|||
* Inputs: |
|||
* 0: Command header (0x00010040) |
|||
* 1: Media type to load the titles from |
|||
* Outputs: |
|||
* 1: Result, 0 on success, otherwise error code |
|||
* 2: The number of titles in the requested media type |
|||
*/ |
|||
static void TitleIDListGetTotal(Service::Interface* self) { |
|||
u32* cmd_buff = Kernel::GetCommandBuffer(); |
|||
u32 media_type = cmd_buff[1] & 0xFF; |
|||
|
|||
cmd_buff[1] = RESULT_SUCCESS.raw; |
|||
cmd_buff[2] = 0; |
|||
LOG_WARNING(Service_CFG, "(STUBBED) media_type %u", media_type); |
|||
} |
|||
|
|||
/**
|
|||
* Loads information about the desired number of titles from the desired media type into an array |
|||
* Inputs: |
|||
* 0: Command header (0x00020082) |
|||
* 1: The maximum number of titles to load |
|||
* 2: Media type to load the titles from |
|||
* 3: Descriptor of the output buffer pointer |
|||
* 4: Address of the output buffer |
|||
* Outputs: |
|||
* 1: Result, 0 on success, otherwise error code |
|||
* 2: The number of titles loaded from the requested media type |
|||
*/ |
|||
static void GetTitleIDList(Service::Interface* self) { |
|||
u32* cmd_buff = Kernel::GetCommandBuffer(); |
|||
u32 num_titles = cmd_buff[1]; |
|||
u32 media_type = cmd_buff[2] & 0xFF; |
|||
u32 addr = cmd_buff[4]; |
|||
|
|||
cmd_buff[1] = RESULT_SUCCESS.raw; |
|||
cmd_buff[2] = 0; |
|||
LOG_WARNING(Service_CFG, "(STUBBED) Requested %u titles from media type %u", num_titles, media_type); |
|||
} |
|||
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
{0x00010040, TitleIDListGetTotal, "TitleIDListGetTotal"}, |
|||
{0x00020082, GetTitleIDList, "GetTitleIDList"}, |
|||
}; |
|||
|
|||
Interface::Interface() { |
|||
Register(FunctionTable); |
|||
} |
|||
|
|||
} // namespace
|
|||
@ -1,23 +0,0 @@ |
|||
// Copyright 2015 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 AM_SYS |
|||
|
|||
namespace AM_SYS { |
|||
|
|||
class Interface : public Service::Interface { |
|||
public: |
|||
Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "am:sys"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace |
|||
@ -0,0 +1,29 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/service/service.h"
|
|||
#include "core/hle/service/boss/boss.h"
|
|||
#include "core/hle/service/boss/boss_p.h"
|
|||
#include "core/hle/service/boss/boss_u.h"
|
|||
|
|||
#include "core/hle/kernel/event.h"
|
|||
#include "core/hle/kernel/shared_memory.h"
|
|||
#include "core/hle/hle.h"
|
|||
|
|||
namespace Service { |
|||
namespace BOSS { |
|||
|
|||
void Init() { |
|||
using namespace Kernel; |
|||
|
|||
AddService(new BOSS_P_Interface); |
|||
AddService(new BOSS_U_Interface); |
|||
} |
|||
|
|||
void Shutdown() { |
|||
} |
|||
|
|||
} // namespace BOSS
|
|||
|
|||
} // namespace Service
|
|||
@ -0,0 +1,20 @@ |
|||
// Copyright 2015 Citra Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "core/hle/kernel/kernel.h" |
|||
#include "core/hle/service/service.h" |
|||
|
|||
namespace Service { |
|||
namespace BOSS { |
|||
|
|||
/// Initialize BOSS service(s) |
|||
void Init(); |
|||
|
|||
/// Shutdown BOSS service(s) |
|||
void Shutdown(); |
|||
|
|||
} // namespace BOSS |
|||
} // namespace Service |
|||
@ -0,0 +1,20 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/boss/boss.h"
|
|||
#include "core/hle/service/boss/boss_p.h"
|
|||
|
|||
namespace Service { |
|||
namespace BOSS { |
|||
|
|||
// Empty arrays are illegal -- commented out until an entry is added.
|
|||
// const Interface::FunctionInfo FunctionTable[] = { };
|
|||
|
|||
BOSS_P_Interface::BOSS_P_Interface() { |
|||
//Register(FunctionTable);
|
|||
} |
|||
|
|||
} // namespace BOSS
|
|||
} // namespace Service
|
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2015 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 BOSS { |
|||
|
|||
class BOSS_P_Interface : public Service::Interface { |
|||
public: |
|||
BOSS_P_Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "boss:P"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace BOSS |
|||
} // namespace Service |
|||
@ -0,0 +1,21 @@ |
|||
// Copyright 2014 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/boss/boss.h"
|
|||
#include "core/hle/service/boss/boss_u.h"
|
|||
|
|||
namespace Service { |
|||
namespace BOSS { |
|||
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
{0x00020100, nullptr, "GetStorageInfo"}, |
|||
}; |
|||
|
|||
BOSS_U_Interface::BOSS_U_Interface() { |
|||
Register(FunctionTable); |
|||
} |
|||
|
|||
} // namespace BOSS
|
|||
} // namespace Service
|
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2014 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 BOSS { |
|||
|
|||
class BOSS_U_Interface : public Service::Interface { |
|||
public: |
|||
BOSS_U_Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "boss:U"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace BOSS |
|||
} // namespace Service |
|||
@ -1,23 +0,0 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/boss_p.h"
|
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Namespace BOSS_P
|
|||
|
|||
namespace BOSS_P { |
|||
|
|||
// Empty arrays are illegal -- commented out until an entry is added.
|
|||
// const Interface::FunctionInfo FunctionTable[] = { };
|
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Interface class
|
|||
|
|||
Interface::Interface() { |
|||
//Register(FunctionTable);
|
|||
} |
|||
|
|||
} // namespace
|
|||
@ -1,23 +0,0 @@ |
|||
// Copyright 2015 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 BOSS_P |
|||
|
|||
namespace BOSS_P { |
|||
|
|||
class Interface : public Service::Interface { |
|||
public: |
|||
Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "boss:P"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace |
|||
@ -1,24 +0,0 @@ |
|||
// Copyright 2014 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/boss_u.h"
|
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Namespace BOSS_U
|
|||
|
|||
namespace BOSS_U { |
|||
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
{0x00020100, nullptr, "GetStorageInfo"}, |
|||
}; |
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Interface class
|
|||
|
|||
Interface::Interface() { |
|||
Register(FunctionTable); |
|||
} |
|||
|
|||
} // namespace
|
|||
@ -1,23 +0,0 @@ |
|||
// Copyright 2014 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 BOSS_U |
|||
|
|||
namespace BOSS_U { |
|||
|
|||
class Interface : public Service::Interface { |
|||
public: |
|||
Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "boss:U"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace |
|||
@ -0,0 +1,35 @@ |
|||
// Copyright 2015 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/service/service.h"
|
|||
#include "core/hle/service/cam/cam.h"
|
|||
#include "core/hle/service/cam/cam_c.h"
|
|||
#include "core/hle/service/cam/cam_q.h"
|
|||
#include "core/hle/service/cam/cam_s.h"
|
|||
#include "core/hle/service/cam/cam_u.h"
|
|||
|
|||
#include "core/hle/kernel/event.h"
|
|||
#include "core/hle/kernel/shared_memory.h"
|
|||
#include "core/hle/hle.h"
|
|||
|
|||
namespace Service { |
|||
namespace CAM { |
|||
|
|||
void Init() { |
|||
using namespace Kernel; |
|||
|
|||
AddService(new CAM_C_Interface); |
|||
AddService(new CAM_Q_Interface); |
|||
AddService(new CAM_S_Interface); |
|||
AddService(new CAM_U_Interface); |
|||
} |
|||
|
|||
void Shutdown() { |
|||
} |
|||
|
|||
} // namespace CAM
|
|||
|
|||
} // namespace Service
|
|||
@ -0,0 +1,20 @@ |
|||
// Copyright 2015 Citra Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "core/hle/kernel/kernel.h" |
|||
#include "core/hle/service/service.h" |
|||
|
|||
namespace Service { |
|||
namespace CAM { |
|||
|
|||
/// Initialize CAM service(s) |
|||
void Init(); |
|||
|
|||
/// Shutdown CAM service(s) |
|||
void Shutdown(); |
|||
|
|||
} // namespace CAM |
|||
} // namespace Service |
|||
@ -0,0 +1,20 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/cam/cam.h"
|
|||
#include "core/hle/service/cam/cam_c.h"
|
|||
|
|||
namespace Service { |
|||
namespace CAM { |
|||
|
|||
// Empty arrays are illegal -- commented out until an entry is added.
|
|||
//const Interface::FunctionInfo FunctionTable[] = { };
|
|||
|
|||
CAM_C_Interface::CAM_C_Interface() { |
|||
//Register(FunctionTable);
|
|||
} |
|||
|
|||
} // namespace CAM
|
|||
} // namespace Service
|
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2015 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 CAM { |
|||
|
|||
class CAM_C_Interface : public Service::Interface { |
|||
public: |
|||
CAM_C_Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "cam:c"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace CAM |
|||
} // namespace Service |
|||
@ -0,0 +1,20 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/cam/cam.h"
|
|||
#include "core/hle/service/cam/cam_q.h"
|
|||
|
|||
namespace Service { |
|||
namespace CAM { |
|||
|
|||
// Empty arrays are illegal -- commented out until an entry is added.
|
|||
//const Interface::FunctionInfo FunctionTable[] = { };
|
|||
|
|||
CAM_Q_Interface::CAM_Q_Interface() { |
|||
//Register(FunctionTable);
|
|||
} |
|||
|
|||
} // namespace CAM
|
|||
} // namespace Service
|
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2015 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 CAM { |
|||
|
|||
class CAM_Q_Interface : public Service::Interface { |
|||
public: |
|||
CAM_Q_Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "cam:q"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace CAM |
|||
} // namespace Service |
|||
@ -0,0 +1,20 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/cam/cam.h"
|
|||
#include "core/hle/service/cam/cam_s.h"
|
|||
|
|||
namespace Service { |
|||
namespace CAM { |
|||
|
|||
// Empty arrays are illegal -- commented out until an entry is added.
|
|||
//const Interface::FunctionInfo FunctionTable[] = { };
|
|||
|
|||
CAM_S_Interface::CAM_S_Interface() { |
|||
//Register(FunctionTable);
|
|||
} |
|||
|
|||
} // namespace CAM
|
|||
} // namespace Service
|
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2015 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 CAM { |
|||
|
|||
class CAM_S_Interface : public Service::Interface { |
|||
public: |
|||
CAM_S_Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "cam:s"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace CAM |
|||
} // namespace Service |
|||
@ -0,0 +1,20 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/cam/cam.h"
|
|||
#include "core/hle/service/cam/cam_u.h"
|
|||
|
|||
namespace Service { |
|||
namespace CAM { |
|||
|
|||
// Empty arrays are illegal -- commented out until an entry is added.
|
|||
//const Interface::FunctionInfo FunctionTable[] = { };
|
|||
|
|||
CAM_U_Interface::CAM_U_Interface() { |
|||
//Register(FunctionTable);
|
|||
} |
|||
|
|||
} // namespace CAM
|
|||
} // namespace Service
|
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2015 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 CAM { |
|||
|
|||
class CAM_U_Interface : public Service::Interface { |
|||
public: |
|||
CAM_U_Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "cam:u"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace CAM |
|||
} // namespace Service |
|||
@ -1,23 +0,0 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/cam_u.h"
|
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Namespace CAM_U
|
|||
|
|||
namespace CAM_U { |
|||
|
|||
// Empty arrays are illegal -- commented out until an entry is added.
|
|||
//const Interface::FunctionInfo FunctionTable[] = { };
|
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Interface class
|
|||
|
|||
Interface::Interface() { |
|||
//Register(FunctionTable);
|
|||
} |
|||
|
|||
} // namespace
|
|||
@ -1,23 +0,0 @@ |
|||
// Copyright 2015 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 CAM_U |
|||
|
|||
namespace CAM_U { |
|||
|
|||
class Interface : public Service::Interface { |
|||
public: |
|||
Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "cam:u"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace |
|||
@ -0,0 +1,31 @@ |
|||
// Copyright 2015 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/service/service.h"
|
|||
#include "core/hle/service/cecd/cecd.h"
|
|||
#include "core/hle/service/cecd/cecd_s.h"
|
|||
#include "core/hle/service/cecd/cecd_u.h"
|
|||
|
|||
#include "core/hle/kernel/event.h"
|
|||
#include "core/hle/kernel/shared_memory.h"
|
|||
#include "core/hle/hle.h"
|
|||
|
|||
namespace Service { |
|||
namespace CECD { |
|||
|
|||
void Init() { |
|||
using namespace Kernel; |
|||
|
|||
AddService(new CECD_S_Interface); |
|||
AddService(new CECD_U_Interface); |
|||
} |
|||
|
|||
void Shutdown() { |
|||
} |
|||
|
|||
} // namespace CECD
|
|||
|
|||
} // namespace Service
|
|||
@ -0,0 +1,20 @@ |
|||
// Copyright 2015 Citra Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "core/hle/kernel/kernel.h" |
|||
#include "core/hle/service/service.h" |
|||
|
|||
namespace Service { |
|||
namespace CECD { |
|||
|
|||
/// Initialize CECD service(s) |
|||
void Init(); |
|||
|
|||
/// Shutdown CECD service(s) |
|||
void Shutdown(); |
|||
|
|||
} // namespace CECD |
|||
} // namespace Service |
|||
@ -0,0 +1,20 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/cecd/cecd.h"
|
|||
#include "core/hle/service/cecd/cecd_s.h"
|
|||
|
|||
namespace Service { |
|||
namespace CECD { |
|||
|
|||
// Empty arrays are illegal -- commented out until an entry is added.
|
|||
//const Interface::FunctionInfo FunctionTable[] = { };
|
|||
|
|||
CECD_S_Interface::CECD_S_Interface() { |
|||
//Register(FunctionTable);
|
|||
} |
|||
|
|||
} // namespace CECD
|
|||
} // namespace Service
|
|||
@ -0,0 +1,20 @@ |
|||
// Copyright 2014 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/cecd/cecd.h"
|
|||
#include "core/hle/service/cecd/cecd_u.h"
|
|||
|
|||
namespace Service { |
|||
namespace CECD { |
|||
|
|||
// Empty arrays are illegal -- commented out until an entry is added.
|
|||
//const Interface::FunctionInfo FunctionTable[] = { };
|
|||
|
|||
CECD_U_Interface::CECD_U_Interface() { |
|||
//Register(FunctionTable);
|
|||
} |
|||
|
|||
} // namespace CECD
|
|||
} // namespace Service
|
|||
@ -1,23 +0,0 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/cecd_s.h"
|
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Namespace CECD_S
|
|||
|
|||
namespace CECD_S { |
|||
|
|||
// Empty arrays are illegal -- commented out until an entry is added.
|
|||
//const Interface::FunctionInfo FunctionTable[] = { };
|
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Interface class
|
|||
|
|||
Interface::Interface() { |
|||
//Register(FunctionTable);
|
|||
} |
|||
|
|||
} // namespace
|
|||
@ -1,23 +0,0 @@ |
|||
// Copyright 2014 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/cecd_u.h"
|
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Namespace CECD_U
|
|||
|
|||
namespace CECD_U { |
|||
|
|||
// Empty arrays are illegal -- commented out until an entry is added.
|
|||
//const Interface::FunctionInfo FunctionTable[] = { };
|
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Interface class
|
|||
|
|||
Interface::Interface() { |
|||
//Register(FunctionTable);
|
|||
} |
|||
|
|||
} // namespace
|
|||
@ -0,0 +1,29 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/service/service.h"
|
|||
#include "core/hle/service/frd/frd.h"
|
|||
#include "core/hle/service/frd/frd_a.h"
|
|||
#include "core/hle/service/frd/frd_u.h"
|
|||
|
|||
#include "core/hle/kernel/event.h"
|
|||
#include "core/hle/kernel/shared_memory.h"
|
|||
#include "core/hle/hle.h"
|
|||
|
|||
namespace Service { |
|||
namespace FRD { |
|||
|
|||
void Init() { |
|||
using namespace Kernel; |
|||
|
|||
AddService(new FRD_A_Interface); |
|||
AddService(new FRD_U_Interface); |
|||
} |
|||
|
|||
void Shutdown() { |
|||
} |
|||
|
|||
} // namespace FRD
|
|||
|
|||
} // namespace Service
|
|||
@ -0,0 +1,20 @@ |
|||
// Copyright 2015 Citra Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "core/hle/kernel/kernel.h" |
|||
#include "core/hle/service/service.h" |
|||
|
|||
namespace Service { |
|||
namespace FRD { |
|||
|
|||
/// Initialize FRD service(s) |
|||
void Init(); |
|||
|
|||
/// Shutdown FRD service(s) |
|||
void Shutdown(); |
|||
|
|||
} // namespace FRD |
|||
} // namespace Service |
|||
@ -0,0 +1,20 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/frd/frd.h"
|
|||
#include "core/hle/service/frd/frd_a.h"
|
|||
|
|||
namespace Service { |
|||
namespace FRD { |
|||
|
|||
// Empty arrays are illegal -- commented out until an entry is added.
|
|||
// const Interface::FunctionInfo FunctionTable[] = { };
|
|||
|
|||
FRD_A_Interface::FRD_A_Interface() { |
|||
//Register(FunctionTable);
|
|||
} |
|||
|
|||
} // namespace FRD
|
|||
} // namespace Service
|
|||
@ -1,23 +0,0 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/frd_a.h"
|
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Namespace FRD_A
|
|||
|
|||
namespace FRD_A { |
|||
|
|||
// Empty arrays are illegal -- commented out until an entry is added.
|
|||
// const Interface::FunctionInfo FunctionTable[] = { };
|
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Interface class
|
|||
|
|||
Interface::Interface() { |
|||
//Register(FunctionTable);
|
|||
} |
|||
|
|||
} // namespace
|
|||
@ -0,0 +1,31 @@ |
|||
// Copyright 2015 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/service/service.h"
|
|||
#include "core/hle/service/news/news.h"
|
|||
#include "core/hle/service/news/news_s.h"
|
|||
#include "core/hle/service/news/news_u.h"
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/kernel/event.h"
|
|||
#include "core/hle/kernel/shared_memory.h"
|
|||
|
|||
namespace Service { |
|||
namespace NEWS { |
|||
|
|||
void Init() { |
|||
using namespace Kernel; |
|||
|
|||
AddService(new NEWS_S_Interface); |
|||
AddService(new NEWS_U_Interface); |
|||
} |
|||
|
|||
void Shutdown() { |
|||
} |
|||
|
|||
} // namespace NEWS
|
|||
|
|||
} // namespace Service
|
|||
@ -0,0 +1,20 @@ |
|||
// Copyright 2015 Citra Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "core/hle/kernel/kernel.h" |
|||
#include "core/hle/service/service.h" |
|||
|
|||
namespace Service { |
|||
namespace NEWS { |
|||
|
|||
/// Initialize NEWS service(s) |
|||
void Init(); |
|||
|
|||
/// Shutdown NEWS service(s) |
|||
void Shutdown(); |
|||
|
|||
} // namespace NEWS |
|||
} // namespace Service |
|||
@ -0,0 +1,21 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/news/news.h"
|
|||
#include "core/hle/service/news/news_s.h"
|
|||
|
|||
namespace Service { |
|||
namespace NEWS { |
|||
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
{0x000100C6, nullptr, "AddNotification"}, |
|||
}; |
|||
|
|||
NEWS_S_Interface::NEWS_S_Interface() { |
|||
Register(FunctionTable); |
|||
} |
|||
|
|||
} // namespace NEWS
|
|||
} // namespace Service
|
|||
@ -0,0 +1,21 @@ |
|||
// Copyright 2014 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/news/news.h"
|
|||
#include "core/hle/service/news/news_u.h"
|
|||
|
|||
namespace Service { |
|||
namespace NEWS { |
|||
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
{0x000100C6, nullptr, "AddNotification"}, |
|||
}; |
|||
|
|||
NEWS_U_Interface::NEWS_U_Interface() { |
|||
Register(FunctionTable); |
|||
} |
|||
|
|||
} // namespace NEWS
|
|||
} // namespace Service
|
|||
@ -1,24 +0,0 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/news_s.h"
|
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Namespace NEWS_S
|
|||
|
|||
namespace NEWS_S { |
|||
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
{0x000100C6, nullptr, "AddNotification"}, |
|||
}; |
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Interface class
|
|||
|
|||
Interface::Interface() { |
|||
Register(FunctionTable); |
|||
} |
|||
|
|||
} // namespace
|
|||
@ -1,24 +0,0 @@ |
|||
// Copyright 2014 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/news_u.h"
|
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Namespace NEWS_U
|
|||
|
|||
namespace NEWS_U { |
|||
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
{0x000100C8, nullptr, "AddNotification"}, |
|||
}; |
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Interface class
|
|||
|
|||
Interface::Interface() { |
|||
Register(FunctionTable); |
|||
} |
|||
|
|||
} // namespace
|
|||
@ -0,0 +1,42 @@ |
|||
// Copyright 2015 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/service/service.h"
|
|||
#include "core/hle/service/nim/nim.h"
|
|||
#include "core/hle/service/nim/nim_aoc.h"
|
|||
#include "core/hle/service/nim/nim_s.h"
|
|||
#include "core/hle/service/nim/nim_u.h"
|
|||
|
|||
#include "core/hle/kernel/event.h"
|
|||
#include "core/hle/kernel/shared_memory.h"
|
|||
#include "core/hle/hle.h"
|
|||
|
|||
namespace Service { |
|||
namespace NIM { |
|||
|
|||
void CheckSysUpdateAvailable(Service::Interface* self) { |
|||
u32* cmd_buff = Kernel::GetCommandBuffer(); |
|||
|
|||
cmd_buff[1] = RESULT_SUCCESS.raw; |
|||
cmd_buff[2] = 0; // No update available
|
|||
|
|||
LOG_WARNING(Service_NWM, "(STUBBED) called"); |
|||
} |
|||
|
|||
void Init() { |
|||
using namespace Kernel; |
|||
|
|||
AddService(new NIM_AOC_Interface); |
|||
AddService(new NIM_S_Interface); |
|||
AddService(new NIM_U_Interface); |
|||
} |
|||
|
|||
void Shutdown() { |
|||
} |
|||
|
|||
} // namespace NIM
|
|||
|
|||
} // namespace Service
|
|||
@ -0,0 +1,30 @@ |
|||
// Copyright 2015 Citra Emulator Project |
|||
// Licensed under GPLv2 or any later version |
|||
// Refer to the license.txt file included. |
|||
|
|||
#pragma once |
|||
|
|||
#include "core/hle/kernel/kernel.h" |
|||
#include "core/hle/service/service.h" |
|||
|
|||
namespace Service { |
|||
namespace NIM { |
|||
|
|||
/** |
|||
* NIM::CheckSysUpdateAvailable service function |
|||
* Inputs: |
|||
* 1 : None |
|||
* Outputs: |
|||
* 1 : Result of function, 0 on success, otherwise error code |
|||
* 2 : flag, 0 = no system update available, 1 = system update available. |
|||
*/ |
|||
void CheckSysUpdateAvailable(Service::Interface* self); |
|||
|
|||
/// Initialize NIM service(s) |
|||
void Init(); |
|||
|
|||
/// Shutdown NIM service(s) |
|||
void Shutdown(); |
|||
|
|||
} // namespace NIM |
|||
} // namespace Service |
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2014 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 NIM { |
|||
|
|||
class NIM_AOC_Interface : public Service::Interface { |
|||
public: |
|||
NIM_AOC_Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "nim:aoc"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace NIM |
|||
} // namespace Service |
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/nim/nim.h"
|
|||
#include "core/hle/service/nim/nim_s.h"
|
|||
|
|||
namespace Service { |
|||
namespace NIM { |
|||
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
{0x000A0000, nullptr, "CheckSysupdateAvailableSOAP"}, |
|||
}; |
|||
|
|||
NIM_S_Interface::NIM_S_Interface() { |
|||
Register(FunctionTable); |
|||
} |
|||
|
|||
} // namespace NIM
|
|||
} // namespace Service
|
|||
|
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2015 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 NIM { |
|||
|
|||
class NIM_S_Interface : public Service::Interface { |
|||
public: |
|||
NIM_S_Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "nim:s"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace NIM |
|||
} // namespace Service |
|||
@ -0,0 +1,27 @@ |
|||
// Copyright 2015 Citra Emulator Project
|
|||
// Licensed under GPLv2 or any later version
|
|||
// Refer to the license.txt file included.
|
|||
|
|||
#include "core/hle/hle.h"
|
|||
#include "core/hle/service/nim/nim.h"
|
|||
#include "core/hle/service/nim/nim_u.h"
|
|||
|
|||
namespace Service { |
|||
namespace NIM { |
|||
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
{0x00010000, nullptr, "StartSysUpdate"}, |
|||
{0x00020000, nullptr, "GetUpdateDownloadProgress"}, |
|||
{0x00040000, nullptr, "FinishTitlesInstall"}, |
|||
{0x00050000, nullptr, "CheckForSysUpdateEvent"}, |
|||
{0x00090000, CheckSysUpdateAvailable, "CheckSysUpdateAvailable"}, |
|||
{0x000A0000, nullptr, "GetState"}, |
|||
}; |
|||
|
|||
NIM_U_Interface::NIM_U_Interface() { |
|||
Register(FunctionTable); |
|||
} |
|||
|
|||
} // namespace NIM
|
|||
} // namespace Service
|
|||
|
|||
@ -0,0 +1,22 @@ |
|||
// Copyright 2015 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 NIM { |
|||
|
|||
class NIM_U_Interface : public Service::Interface { |
|||
public: |
|||
NIM_U_Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "nim:u"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace NIM |
|||
} // namespace Service |
|||
@ -1,23 +0,0 @@ |
|||
// Copyright 2014 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 NIM_AOC |
|||
|
|||
namespace NIM_AOC { |
|||
|
|||
class Interface : public Service::Interface { |
|||
public: |
|||
Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "nim:aoc"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace |
|||
@ -1,48 +0,0 @@ |
|||
// Copyright 2015 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/hle.h"
|
|||
#include "core/hle/service/nim_u.h"
|
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Namespace NIM_U
|
|||
|
|||
namespace NIM_U { |
|||
|
|||
/**
|
|||
* NIM_U::CheckSysUpdateAvailable service function |
|||
* Inputs: |
|||
* 1 : None |
|||
* Outputs: |
|||
* 1 : Result of function, 0 on success, otherwise error code |
|||
* 2 : flag, 0 = no system update available, 1 = system update available. |
|||
*/ |
|||
static void CheckSysUpdateAvailable(Service::Interface* self) { |
|||
u32* cmd_buff = Kernel::GetCommandBuffer(); |
|||
|
|||
cmd_buff[1] = RESULT_SUCCESS.raw; |
|||
cmd_buff[2] = 0; // No update available
|
|||
|
|||
LOG_WARNING(Service_NWM, "(STUBBED) called"); |
|||
} |
|||
|
|||
const Interface::FunctionInfo FunctionTable[] = { |
|||
{0x00010000, nullptr, "StartSysUpdate"}, |
|||
{0x00020000, nullptr, "GetUpdateDownloadProgress"}, |
|||
{0x00040000, nullptr, "FinishTitlesInstall"}, |
|||
{0x00050000, nullptr, "CheckForSysUpdateEvent"}, |
|||
{0x00090000, CheckSysUpdateAvailable, "CheckSysUpdateAvailable"}, |
|||
{0x000A0000, nullptr, "GetState"}, |
|||
}; |
|||
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|||
// Interface class
|
|||
|
|||
Interface::Interface() { |
|||
Register(FunctionTable); |
|||
} |
|||
|
|||
} // namespace
|
|||
@ -1,23 +0,0 @@ |
|||
// Copyright 2015 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 NIM_U |
|||
|
|||
namespace NIM_U { |
|||
|
|||
class Interface : public Service::Interface { |
|||
public: |
|||
Interface(); |
|||
|
|||
std::string GetPortName() const override { |
|||
return "nim:u"; |
|||
} |
|||
}; |
|||
|
|||
} // namespace |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue