mirror of
https://github.com/PabloMK7/citra
synced 2024-11-15 13:18:24 +00:00
More services & small clean ups
This commit is contained in:
parent
ae76469373
commit
9796bc1fa2
61 changed files with 367 additions and 309 deletions
|
@ -32,8 +32,10 @@ set(SRCS
|
|||
hle/kernel/shared_memory.cpp
|
||||
hle/kernel/thread.cpp
|
||||
hle/service/ac_u.cpp
|
||||
hle/service/act_u.cpp
|
||||
hle/service/am_app.cpp
|
||||
hle/service/am_net.cpp
|
||||
hle/service/apt_a.cpp
|
||||
hle/service/apt_u.cpp
|
||||
hle/service/boss_u.cpp
|
||||
hle/service/cecd_u.cpp
|
||||
|
@ -43,17 +45,19 @@ set(SRCS
|
|||
hle/service/csnd_snd.cpp
|
||||
hle/service/dsp_dsp.cpp
|
||||
hle/service/err_f.cpp
|
||||
hle/service/frd_u.cpp
|
||||
hle/service/fs/archive.cpp
|
||||
hle/service/fs/fs_user.cpp
|
||||
hle/service/frd_u.cpp
|
||||
hle/service/gsp_gpu.cpp
|
||||
hle/service/hid_user.cpp
|
||||
hle/service/http_c.cpp
|
||||
hle/service/ir_rst.cpp
|
||||
hle/service/ir_u.cpp
|
||||
hle/service/ldr_ro.cpp
|
||||
hle/service/mic_u.cpp
|
||||
hle/service/nim_aoc.cpp
|
||||
hle/service/ndm_u.cpp
|
||||
hle/service/news_u.cpp
|
||||
hle/service/nim_aoc.cpp
|
||||
hle/service/nwm_uds.cpp
|
||||
hle/service/pm_app.cpp
|
||||
hle/service/ptm_u.cpp
|
||||
|
@ -118,8 +122,10 @@ set(HEADERS
|
|||
hle/kernel/shared_memory.h
|
||||
hle/kernel/thread.h
|
||||
hle/service/ac_u.h
|
||||
hle/service/act_u.h
|
||||
hle/service/am_app.h
|
||||
hle/service/am_net.h
|
||||
hle/service/apt_a.h
|
||||
hle/service/apt_u.h
|
||||
hle/service/boss_u.h
|
||||
hle/service/cecd_u.h
|
||||
|
@ -129,17 +135,19 @@ set(HEADERS
|
|||
hle/service/csnd_snd.h
|
||||
hle/service/dsp_dsp.h
|
||||
hle/service/err_f.h
|
||||
hle/service/frd_u.h
|
||||
hle/service/fs/archive.h
|
||||
hle/service/fs/fs_user.h
|
||||
hle/service/frd_u.h
|
||||
hle/service/gsp_gpu.h
|
||||
hle/service/hid_user.h
|
||||
hle/service/http_c.h
|
||||
hle/service/ir_rst.h
|
||||
hle/service/ir_u.h
|
||||
hle/service/ldr_ro.h
|
||||
hle/service/mic_u.h
|
||||
hle/service/nim_aoc.h
|
||||
hle/service/ndm_u.h
|
||||
hle/service/news_u.h
|
||||
hle/service/nim_aoc.h
|
||||
hle/service/nwm_uds.h
|
||||
hle/service/pm_app.h
|
||||
hle/service/ptm_u.h
|
||||
|
|
|
@ -56,7 +56,4 @@ Interface::Interface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -16,11 +16,7 @@ namespace AC_U {
|
|||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
~Interface();
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "ac:u";
|
||||
}
|
||||
|
|
24
src/core/hle/service/act_u.cpp
Normal file
24
src/core/hle/service/act_u.cpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
// Copyright 2014 Citra Emulator Project
|
||||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include "common/log.h"
|
||||
#include "core/hle/hle.h"
|
||||
#include "core/hle/service/act_u.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Namespace ACT_U
|
||||
|
||||
namespace ACT_U {
|
||||
|
||||
// Empty arrays are illegal -- commented out until an entry is added.
|
||||
//const Interface::FunctionInfo FunctionTable[] = { };
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Interface class
|
||||
|
||||
Interface::Interface() {
|
||||
//Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
} // namespace
|
23
src/core/hle/service/act_u.h
Normal file
23
src/core/hle/service/act_u.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
// 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 ACT_U
|
||||
|
||||
namespace ACT_U {
|
||||
|
||||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "act:u";
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace
|
|
@ -15,10 +15,6 @@ 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";
|
||||
}
|
||||
|
|
|
@ -41,7 +41,4 @@ Interface::Interface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -14,11 +14,7 @@ namespace AM_NET {
|
|||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
~Interface();
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "am:net";
|
||||
}
|
||||
|
|
34
src/core/hle/service/apt_a.cpp
Normal file
34
src/core/hle/service/apt_a.cpp
Normal file
|
@ -0,0 +1,34 @@
|
|||
// Copyright 2014 Citra Emulator Project
|
||||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include "common/log.h"
|
||||
#include "core/hle/hle.h"
|
||||
#include "core/hle/service/apt_a.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Namespace APT_A
|
||||
|
||||
namespace APT_A {
|
||||
|
||||
const Interface::FunctionInfo FunctionTable[] = {
|
||||
{0x00010040, nullptr, "GetLockHandle?"},
|
||||
{0x00020080, nullptr, "Initialize?"},
|
||||
{0x00030040, nullptr, "Enable?"},
|
||||
{0x00040040, nullptr, "Finalize?"},
|
||||
{0x00050040, nullptr, "GetAppletManInfo?"},
|
||||
{0x00060040, nullptr, "GetAppletInfo?"},
|
||||
{0x003B0040, nullptr, "CancelLibraryApplet?"},
|
||||
{0x00430040, nullptr, "NotifyToWait?"},
|
||||
{0x004B00C2, nullptr, "AppletUtility?"},
|
||||
{0x00550040, nullptr, "WriteInputToNsState?"},
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Interface class
|
||||
|
||||
Interface::Interface() {
|
||||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
} // namespace
|
23
src/core/hle/service/apt_a.h
Normal file
23
src/core/hle/service/apt_a.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
// 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 APT_A
|
||||
|
||||
namespace APT_A {
|
||||
|
||||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "APT:A";
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace
|
|
@ -330,7 +330,4 @@ Interface::Interface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -20,15 +20,8 @@ namespace APT_U {
|
|||
/// Interface to "APT:U" service
|
||||
class Interface : public Service::Interface {
|
||||
public:
|
||||
|
||||
Interface();
|
||||
|
||||
~Interface();
|
||||
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
std::string GetPortName() const override {
|
||||
return "APT:U";
|
||||
}
|
||||
|
|
|
@ -11,18 +11,15 @@
|
|||
|
||||
namespace BOSS_U {
|
||||
|
||||
const Interface::FunctionInfo FunctionTable[] = {
|
||||
const Interface::FunctionInfo FunctionTable[] = {
|
||||
{0x00020100, nullptr, "GetStorageInfo"},
|
||||
};
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Interface class
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Interface class
|
||||
|
||||
Interface::Interface() {
|
||||
Interface::Interface() {
|
||||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -11,17 +11,13 @@
|
|||
|
||||
namespace BOSS_U {
|
||||
|
||||
class Interface : public Service::Interface {
|
||||
public:
|
||||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
~Interface();
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
std::string GetPortName() const {
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "boss:U";
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -15,10 +15,6 @@ 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";
|
||||
}
|
||||
|
|
|
@ -81,7 +81,6 @@ const Interface::FunctionInfo FunctionTable[] = {
|
|||
{0x080400C2, nullptr, "CreateConfigInfoBlk"},
|
||||
{0x08050000, nullptr, "DeleteConfigNANDSavefile"},
|
||||
{0x08060000, FormatConfig, "FormatConfig"},
|
||||
{0x08070000, nullptr, "Unknown"},
|
||||
{0x08080000, nullptr, "UpdateConfigBlk1"},
|
||||
{0x08090000, nullptr, "UpdateConfigBlk2"},
|
||||
{0x080A0000, nullptr, "UpdateConfigBlk3"},
|
||||
|
@ -100,6 +99,7 @@ const Interface::FunctionInfo FunctionTable[] = {
|
|||
{0x08170000, nullptr, "SecureInfoGetByte101"},
|
||||
{0x08180042, nullptr, "SecureInfoGetSerialNo"},
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Interface class
|
||||
|
||||
|
@ -107,7 +107,4 @@ Interface::Interface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -14,11 +14,7 @@ namespace CFG_I {
|
|||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
~Interface();
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "cfg:i";
|
||||
}
|
||||
|
|
|
@ -181,6 +181,7 @@ const Interface::FunctionInfo FunctionTable[] = {
|
|||
{0x00090040, GetCountryCodeString, "GetCountryCodeString"},
|
||||
{0x000A0040, GetCountryCodeID, "GetCountryCodeID"},
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Interface class
|
||||
|
||||
|
@ -188,7 +189,4 @@ Interface::Interface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -14,11 +14,7 @@ namespace CFG_U {
|
|||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
~Interface();
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "cfg:u";
|
||||
}
|
||||
|
|
|
@ -33,7 +33,4 @@ Interface::Interface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -14,11 +14,7 @@ namespace CSND_SND {
|
|||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
~Interface();
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "csnd:SND";
|
||||
}
|
||||
|
|
|
@ -190,7 +190,4 @@ Interface::Interface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -14,11 +14,7 @@ namespace DSP_DSP {
|
|||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
~Interface();
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "dsp::DSP";
|
||||
}
|
||||
|
|
|
@ -11,17 +11,15 @@
|
|||
|
||||
namespace ERR_F {
|
||||
|
||||
const Interface::FunctionInfo FunctionTable[] = {
|
||||
const Interface::FunctionInfo FunctionTable[] = {
|
||||
{0x00010800, nullptr, "ThrowFatalError"}
|
||||
};
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Interface class
|
||||
};
|
||||
|
||||
Interface::Interface() {
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Interface class
|
||||
|
||||
Interface::Interface() {
|
||||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -11,17 +11,13 @@
|
|||
|
||||
namespace ERR_F {
|
||||
|
||||
class Interface : public Service::Interface {
|
||||
public:
|
||||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
~Interface();
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "err:f";
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
namespace FRD_U {
|
||||
|
||||
const Interface::FunctionInfo FunctionTable[] = {
|
||||
const Interface::FunctionInfo FunctionTable[] = {
|
||||
{0x00050000, nullptr, "GetFriendKey"},
|
||||
{0x00080000, nullptr, "GetMyPresence"},
|
||||
{0x00100040, nullptr, "GetPassword"},
|
||||
|
@ -21,15 +21,13 @@ namespace FRD_U {
|
|||
{0x001C0042, nullptr, "DecodeLocalFriendCode"},
|
||||
{0x001D0002, nullptr, "SetCurrentlyPlayingText"},
|
||||
{0x00320042, nullptr, "SetClientSdkVersion"}
|
||||
};
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Interface class
|
||||
};
|
||||
|
||||
Interface::Interface() {
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Interface class
|
||||
|
||||
Interface::Interface() {
|
||||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -11,17 +11,13 @@
|
|||
|
||||
namespace FRD_U {
|
||||
|
||||
class Interface : public Service::Interface {
|
||||
public:
|
||||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
~Interface();
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "frd:u";
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -580,8 +580,5 @@ FSUserInterface::FSUserInterface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
FSUserInterface::~FSUserInterface() {
|
||||
}
|
||||
|
||||
} // namespace FS
|
||||
} // namespace Service
|
||||
|
|
|
@ -15,15 +15,8 @@ namespace FS {
|
|||
/// Interface to "fs:USER" service
|
||||
class FSUserInterface : public Service::Interface {
|
||||
public:
|
||||
|
||||
FSUserInterface();
|
||||
|
||||
~FSUserInterface();
|
||||
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
std::string GetPortName() const override {
|
||||
return "fs:USER";
|
||||
}
|
||||
|
|
|
@ -396,7 +396,4 @@ Interface::Interface() {
|
|||
g_thread_id = 1;
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -158,19 +158,11 @@ static_assert(sizeof(CommandBuffer) == 0x200, "CommandBuffer struct has incorrec
|
|||
/// Interface to "srv:" service
|
||||
class Interface : public Service::Interface {
|
||||
public:
|
||||
|
||||
Interface();
|
||||
|
||||
~Interface();
|
||||
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
std::string GetPortName() const override {
|
||||
return "gsp::Gpu";
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -179,7 +179,6 @@ const Interface::FunctionInfo FunctionTable[] = {
|
|||
{0x00170000, nullptr, "GetSoundVolume"},
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Interface class
|
||||
|
||||
|
@ -196,7 +195,4 @@ Interface::Interface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -102,19 +102,11 @@ void PadUpdateComplete();
|
|||
*/
|
||||
class Interface : public Service::Interface {
|
||||
public:
|
||||
|
||||
Interface();
|
||||
|
||||
~Interface();
|
||||
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
std::string GetPortName() const override {
|
||||
return "hid:USER";
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
|
64
src/core/hle/service/http_c.cpp
Normal file
64
src/core/hle/service/http_c.cpp
Normal file
|
@ -0,0 +1,64 @@
|
|||
// Copyright 2014 Citra Emulator Project
|
||||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include "common/log.h"
|
||||
#include "core/hle/hle.h"
|
||||
#include "core/hle/service/http_c.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Namespace HTTP_C
|
||||
|
||||
namespace HTTP_C {
|
||||
|
||||
const Interface::FunctionInfo FunctionTable[] = {
|
||||
{0x00010044, nullptr, "Initialize"},
|
||||
{0x00020082, nullptr, "CreateContext"},
|
||||
{0x00030040, nullptr, "CloseContext"},
|
||||
{0x00040040, nullptr, "CancelConnection"},
|
||||
{0x00050040, nullptr, "GetRequestState"},
|
||||
{0x00060040, nullptr, "GetDownloadSizeState"},
|
||||
{0x00070040, nullptr, "GetRequestError"},
|
||||
{0x00080042, nullptr, "InitializeConnectionSession"},
|
||||
{0x00090040, nullptr, "BeginRequest"},
|
||||
{0x000A0040, nullptr, "BeginRequestAsync"},
|
||||
{0x000B0082, nullptr, "ReceiveData"},
|
||||
{0x000C0102, nullptr, "ReceiveDataTimeout"},
|
||||
{0x000D0146, nullptr, "SetProxy"},
|
||||
{0x000E0040, nullptr, "SetProxyDefault"},
|
||||
{0x000F00C4, nullptr, "SetBasicAuthorization"},
|
||||
{0x00100080, nullptr, "SetSocketBufferSize"},
|
||||
{0x001100C4, nullptr, "AddRequestHeader"},
|
||||
{0x001200C4, nullptr, "AddPostDataAscii"},
|
||||
{0x001300C4, nullptr, "AddPostDataBinary"},
|
||||
{0x00140082, nullptr, "AddPostDataRaw"},
|
||||
{0x00150080, nullptr, "SetPostDataType"},
|
||||
{0x001600C4, nullptr, "SendPostDataAscii"},
|
||||
{0x00170144, nullptr, "SendPostDataAsciiTimeout"},
|
||||
{0x001800C4, nullptr, "SendPostDataBinary"},
|
||||
{0x00190144, nullptr, "SendPostDataBinaryTimeout"},
|
||||
{0x001A0082, nullptr, "SendPostDataRaw"},
|
||||
{0x001B0102, nullptr, "SendPOSTDataRawTimeout"},
|
||||
{0x001C0080, nullptr, "SetPostDataEncoding"},
|
||||
{0x001D0040, nullptr, "NotifyFinishSendPostData"},
|
||||
{0x001E00C4, nullptr, "GetResponseHeader"},
|
||||
{0x001F0144, nullptr, "GetResponseHeaderTimeout"},
|
||||
{0x00200082, nullptr, "GetResponseData"},
|
||||
{0x00210102, nullptr, "GetResponseDataTimeout"},
|
||||
{0x00220040, nullptr, "GetResponseStatusCode"},
|
||||
{0x002300C0, nullptr, "GetResponseStatusCodeTimeout"},
|
||||
{0x00240082, nullptr, "AddTrustedRootCA"},
|
||||
{0x00350186, nullptr, "SetDefaultProxy"},
|
||||
{0x00360000, nullptr, "ClearDNSCache"},
|
||||
{0x00370080, nullptr, "SetKeepAlive"},
|
||||
{0x003800C0, nullptr, "Finalize"},
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Interface class
|
||||
|
||||
Interface::Interface() {
|
||||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
} // namespace
|
23
src/core/hle/service/http_c.h
Normal file
23
src/core/hle/service/http_c.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
// 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 HTTP_C
|
||||
|
||||
namespace HTTP_C {
|
||||
|
||||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "http:C";
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace
|
|
@ -30,7 +30,4 @@ Interface::Interface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -14,11 +14,7 @@ namespace IR_RST {
|
|||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
~Interface();
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "ir:rst";
|
||||
}
|
||||
|
|
|
@ -39,7 +39,4 @@ Interface::Interface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -14,11 +14,7 @@ namespace IR_U {
|
|||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
~Interface();
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "ir:u";
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@ const Interface::FunctionInfo FunctionTable[] = {
|
|||
{0x000402C2, nullptr, "CRO_LoadAndFix"},
|
||||
{0x000500C2, nullptr, "CRO_ApplyRelocationPatchesAndLink"}
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Interface class
|
||||
|
||||
|
|
|
@ -15,10 +15,6 @@ 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";
|
||||
}
|
||||
|
|
|
@ -37,7 +37,4 @@ Interface::Interface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -16,11 +16,7 @@ namespace MIC_U {
|
|||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
~Interface();
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "mic:u";
|
||||
}
|
||||
|
|
|
@ -24,7 +24,4 @@ Interface::Interface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -15,19 +15,11 @@ namespace NDM_U {
|
|||
|
||||
class Interface : public Service::Interface {
|
||||
public:
|
||||
|
||||
Interface();
|
||||
|
||||
~Interface();
|
||||
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
std::string GetPortName() const override {
|
||||
return "ndm:u";
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
|
25
src/core/hle/service/news_u.cpp
Normal file
25
src/core/hle/service/news_u.cpp
Normal file
|
@ -0,0 +1,25 @@
|
|||
// Copyright 2014 Citra Emulator Project
|
||||
// Licensed under GPLv2 or any later version
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include "common/log.h"
|
||||
#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, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
} // namespace
|
23
src/core/hle/service/news_u.h
Normal file
23
src/core/hle/service/news_u.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
// 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 NEWS_U
|
||||
|
||||
namespace NEWS_U {
|
||||
|
||||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "news:u";
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace
|
|
@ -15,10 +15,6 @@ 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";
|
||||
}
|
||||
|
|
|
@ -29,7 +29,4 @@ Interface::Interface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -16,11 +16,7 @@ namespace NWM_UDS {
|
|||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
~Interface();
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "nwm:UDS";
|
||||
}
|
||||
|
|
|
@ -29,7 +29,4 @@ Interface::Interface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -14,11 +14,7 @@ namespace PM_APP {
|
|||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
~Interface();
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "pm:app";
|
||||
}
|
||||
|
|
|
@ -122,7 +122,4 @@ Interface::Interface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -16,11 +16,7 @@ namespace PTM_U {
|
|||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
~Interface();
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "ptm:u";
|
||||
}
|
||||
|
|
|
@ -7,8 +7,10 @@
|
|||
|
||||
#include "core/hle/service/service.h"
|
||||
#include "core/hle/service/ac_u.h"
|
||||
#include "core/hle/service/act_u.h"
|
||||
#include "core/hle/service/am_app.h"
|
||||
#include "core/hle/service/am_net.h"
|
||||
#include "core/hle/service/apt_a.h"
|
||||
#include "core/hle/service/apt_u.h"
|
||||
#include "core/hle/service/boss_u.h"
|
||||
#include "core/hle/service/cecd_u.h"
|
||||
|
@ -21,12 +23,14 @@
|
|||
#include "core/hle/service/frd_u.h"
|
||||
#include "core/hle/service/gsp_gpu.h"
|
||||
#include "core/hle/service/hid_user.h"
|
||||
#include "core/hle/service/http_c.h"
|
||||
#include "core/hle/service/ir_rst.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/nim_aoc.h"
|
||||
#include "core/hle/service/ndm_u.h"
|
||||
#include "core/hle/service/news_u.h"
|
||||
#include "core/hle/service/nim_aoc.h"
|
||||
#include "core/hle/service/nwm_uds.h"
|
||||
#include "core/hle/service/pm_app.h"
|
||||
#include "core/hle/service/ptm_u.h"
|
||||
|
@ -88,8 +92,10 @@ void Init() {
|
|||
|
||||
g_manager->AddService(new SRV::Interface);
|
||||
g_manager->AddService(new AC_U::Interface);
|
||||
g_manager->AddService(new ACT_U::Interface);
|
||||
g_manager->AddService(new AM_APP::Interface);
|
||||
g_manager->AddService(new AM_NET::Interface);
|
||||
g_manager->AddService(new APT_A::Interface);
|
||||
g_manager->AddService(new APT_U::Interface);
|
||||
g_manager->AddService(new BOSS_U::Interface);
|
||||
g_manager->AddService(new CECD_U::Interface);
|
||||
|
@ -102,12 +108,14 @@ void Init() {
|
|||
g_manager->AddService(new FS::FSUserInterface);
|
||||
g_manager->AddService(new GSP_GPU::Interface);
|
||||
g_manager->AddService(new HID_User::Interface);
|
||||
g_manager->AddService(new HTTP_C::Interface);
|
||||
g_manager->AddService(new IR_RST::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 NIM_AOC::Interface);
|
||||
g_manager->AddService(new NDM_U::Interface);
|
||||
g_manager->AddService(new NEWS_U::Interface);
|
||||
g_manager->AddService(new NIM_AOC::Interface);
|
||||
g_manager->AddService(new NWM_UDS::Interface);
|
||||
g_manager->AddService(new PM_APP::Interface);
|
||||
g_manager->AddService(new PTM_U::Interface);
|
||||
|
|
|
@ -52,7 +52,4 @@ Interface::Interface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -14,11 +14,7 @@ namespace SOC_U {
|
|||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
~Interface();
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "soc:U";
|
||||
}
|
||||
|
|
|
@ -68,7 +68,4 @@ Interface::Interface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -11,21 +11,12 @@ namespace SRV {
|
|||
|
||||
/// Interface to "srv:" service
|
||||
class Interface : public Service::Interface {
|
||||
|
||||
public:
|
||||
|
||||
Interface();
|
||||
|
||||
~Interface();
|
||||
|
||||
/**
|
||||
* Gets the string name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
std::string GetPortName() const override {
|
||||
return "srv:";
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -25,7 +25,4 @@ Interface::Interface() {
|
|||
Register(FunctionTable, ARRAY_SIZE(FunctionTable));
|
||||
}
|
||||
|
||||
Interface::~Interface() {
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
|
@ -14,12 +14,8 @@ namespace SSL_C {
|
|||
class Interface : public Service::Interface {
|
||||
public:
|
||||
Interface();
|
||||
~Interface();
|
||||
/**
|
||||
* Gets the string port name used by CTROS for the service
|
||||
* @return Port name of service
|
||||
*/
|
||||
std::string GetPortName() const {
|
||||
|
||||
std::string GetPortName() const override {
|
||||
return "ssl:C";
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue