summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorpurpasmart96 <purpasmart96@users.noreply.github.com>2014-10-05 23:00:58 +0200
committerpurpasmart96 <kanzoconfigz@hotmail.com>2014-10-08 02:10:54 +0200
commit20f15f31dd0f4836b562eb6f0cc40b4e738e23c9 (patch)
tree6f9845cb72c09ed8414c383df92debe4f6e997f5 /src/core/hle
parentAdded some more names to the function table (diff)
downloadyuzu-20f15f31dd0f4836b562eb6f0cc40b4e738e23c9.tar
yuzu-20f15f31dd0f4836b562eb6f0cc40b4e738e23c9.tar.gz
yuzu-20f15f31dd0f4836b562eb6f0cc40b4e738e23c9.tar.bz2
yuzu-20f15f31dd0f4836b562eb6f0cc40b4e738e23c9.tar.lz
yuzu-20f15f31dd0f4836b562eb6f0cc40b4e738e23c9.tar.xz
yuzu-20f15f31dd0f4836b562eb6f0cc40b4e738e23c9.tar.zst
yuzu-20f15f31dd0f4836b562eb6f0cc40b4e738e23c9.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/apt.cpp32
1 files changed, 31 insertions, 1 deletions
diff --git a/src/core/hle/service/apt.cpp b/src/core/hle/service/apt.cpp
index d73dadf5a..3753f1107 100644
--- a/src/core/hle/service/apt.cpp
+++ b/src/core/hle/service/apt.cpp
@@ -73,6 +73,36 @@ void ReceiveParameter(Service::Interface* self) {
WARN_LOG(KERNEL, "(STUBBED) called app_id=0x%08X, buffer_size=0x%08X", app_id, buffer_size);
}
+/**
+* APT_U::GlanceParameter service function
+* Inputs:
+* 1 : AppID
+* 2 : Parameter buffer size, max size is 0x1000
+* Outputs:
+* 1 : Result of function, 0 on success, otherwise error code
+* 2 : Unknown, for now assume AppID of the process which sent these parameters
+* 3 : Unknown, for now assume Signal type
+* 4 : Actual parameter buffer size, this is <= to the the input size
+* 5 : Value
+* 6 : Handle from the source process which set the parameters, likely used for shared memory
+* 7 : Size
+* 8 : Output parameter buffer ptr
+*/
+void GlanceParameter(Service::Interface* self) {
+ u32* cmd_buff = Service::GetCommandBuffer();
+ u32 app_id = cmd_buff[1];
+ u32 buffer_size = cmd_buff[2];
+ cmd_buff[1] = 0; // No error
+ cmd_buff[2] = 0;
+ cmd_buff[3] = static_cast<u32>(SignalType::AppJustStarted); // Signal type
+ cmd_buff[4] = 0;
+ cmd_buff[5] = 0;
+ cmd_buff[6] = 0;
+ cmd_buff[7] = 0;
+ cmd_buff[8] = 0;
+ WARN_LOG(KERNEL, "(STUBBED) called app_id=0x%08X, buffer_size=0x%08X", app_id, buffer_size);
+}
+
const Interface::FunctionInfo FunctionTable[] = {
{0x00010040, GetLockHandle, "GetLockHandle"},
{0x00020080, Initialize, "Initialize"},
@@ -87,7 +117,7 @@ const Interface::FunctionInfo FunctionTable[] = {
{0x000B0040, InquireNotification, "InquireNotification"},
{0x000C0104, nullptr, "SendParameter"},
{0x000D0080, ReceiveParameter, "ReceiveParameter"},
- {0x000E0080, nullptr, "GlanceParameter"},
+ {0x000E0080, GlanceParameter, "GlanceParameter"},
{0x000F0100, nullptr, "CancelParameter"},
{0x001000C2, nullptr, "DebugFunc"},
{0x001100C0, nullptr, "MapProgramIdForDebug"},