summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-06-03 23:37:17 -0400
committerGravatar bunnei2018-06-03 23:44:22 -0400
commit51d8a2c322357d97a66fd07d3a6007bbb15e4ff4 (patch)
treeac628acf976b314119f52cb834314ffcc03be196 /src
parentMerge pull request #499 from bunnei/am-stuff (diff)
downloadyuzu-51d8a2c322357d97a66fd07d3a6007bbb15e4ff4.tar.gz
yuzu-51d8a2c322357d97a66fd07d3a6007bbb15e4ff4.tar.xz
yuzu-51d8a2c322357d97a66fd07d3a6007bbb15e4ff4.zip
am: Stub out ILibraryAppletAccessor Start and GetResult methods.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/am/am.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 40922ec3a..a7c9701c8 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -436,10 +436,10 @@ public:
436 static const FunctionInfo functions[] = { 436 static const FunctionInfo functions[] = {
437 {0, &ILibraryAppletAccessor::GetAppletStateChangedEvent, "GetAppletStateChangedEvent"}, 437 {0, &ILibraryAppletAccessor::GetAppletStateChangedEvent, "GetAppletStateChangedEvent"},
438 {1, nullptr, "IsCompleted"}, 438 {1, nullptr, "IsCompleted"},
439 {10, nullptr, "Start"}, 439 {10, &ILibraryAppletAccessor::Start, "Start"},
440 {20, nullptr, "RequestExit"}, 440 {20, nullptr, "RequestExit"},
441 {25, nullptr, "Terminate"}, 441 {25, nullptr, "Terminate"},
442 {30, nullptr, "GetResult"}, 442 {30, &ILibraryAppletAccessor::GetResult, "GetResult"},
443 {50, nullptr, "SetOutOfFocusApplicationSuspendingEnabled"}, 443 {50, nullptr, "SetOutOfFocusApplicationSuspendingEnabled"},
444 {100, &ILibraryAppletAccessor::PushInData, "PushInData"}, 444 {100, &ILibraryAppletAccessor::PushInData, "PushInData"},
445 {101, nullptr, "PopOutData"}, 445 {101, nullptr, "PopOutData"},
@@ -470,6 +470,20 @@ private:
470 NGLOG_WARNING(Service_AM, "(STUBBED) called"); 470 NGLOG_WARNING(Service_AM, "(STUBBED) called");
471 } 471 }
472 472
473 void GetResult(Kernel::HLERequestContext& ctx) {
474 IPC::ResponseBuilder rb{ctx, 2};
475 rb.Push(RESULT_SUCCESS);
476
477 NGLOG_WARNING(Service_AM, "(STUBBED) called");
478 }
479
480 void Start(Kernel::HLERequestContext& ctx) {
481 IPC::ResponseBuilder rb{ctx, 2};
482 rb.Push(RESULT_SUCCESS);
483
484 NGLOG_WARNING(Service_AM, "(STUBBED) called");
485 }
486
473 void PushInData(Kernel::HLERequestContext& ctx) { 487 void PushInData(Kernel::HLERequestContext& ctx) {
474 IPC::RequestParser rp{ctx}; 488 IPC::RequestParser rp{ctx};
475 storage_stack.push(rp.PopIpcInterface<AM::IStorage>()); 489 storage_stack.push(rp.PopIpcInterface<AM::IStorage>());