summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-03-25 03:13:36 -0400
committerGravatar bunnei2018-03-25 03:23:52 -0400
commit868f7f18b9a2044b120f310e67004e52146fe034 (patch)
treeff1de948d83db2d5a8dfe8ac1be21fbb08db3698 /src
parentMerge pull request #275 from MerryMage/addticks-dynarmic (diff)
downloadyuzu-868f7f18b9a2044b120f310e67004e52146fe034.tar.gz
yuzu-868f7f18b9a2044b120f310e67004e52146fe034.tar.xz
yuzu-868f7f18b9a2044b120f310e67004e52146fe034.zip
pl_u: Add RequestLoad.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/ns/pl_u.cpp10
-rw-r--r--src/core/hle/service/ns/pl_u.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/service/ns/pl_u.cpp b/src/core/hle/service/ns/pl_u.cpp
index 695e295ca..ef3c7799a 100644
--- a/src/core/hle/service/ns/pl_u.cpp
+++ b/src/core/hle/service/ns/pl_u.cpp
@@ -33,6 +33,7 @@ enum class LoadState : u32 {
33 33
34PL_U::PL_U() : ServiceFramework("pl:u") { 34PL_U::PL_U() : ServiceFramework("pl:u") {
35 static const FunctionInfo functions[] = { 35 static const FunctionInfo functions[] = {
36 {0, &PL_U::RequestLoad, "RequestLoad"},
36 {1, &PL_U::GetLoadState, "GetLoadState"}, 37 {1, &PL_U::GetLoadState, "GetLoadState"},
37 {2, &PL_U::GetSize, "GetSize"}, 38 {2, &PL_U::GetSize, "GetSize"},
38 {3, &PL_U::GetSharedMemoryAddressOffset, "GetSharedMemoryAddressOffset"}, 39 {3, &PL_U::GetSharedMemoryAddressOffset, "GetSharedMemoryAddressOffset"},
@@ -54,6 +55,15 @@ PL_U::PL_U() : ServiceFramework("pl:u") {
54 } 55 }
55} 56}
56 57
58void PL_U::RequestLoad(Kernel::HLERequestContext& ctx) {
59 IPC::RequestParser rp{ctx};
60 const u32 shared_font_type{rp.Pop<u32>()};
61
62 LOG_DEBUG(Service_NS, "called, shared_font_type=%d", shared_font_type);
63 IPC::ResponseBuilder rb{ctx, 2};
64 rb.Push(RESULT_SUCCESS);
65}
66
57void PL_U::GetLoadState(Kernel::HLERequestContext& ctx) { 67void PL_U::GetLoadState(Kernel::HLERequestContext& ctx) {
58 IPC::RequestParser rp{ctx}; 68 IPC::RequestParser rp{ctx};
59 const u32 font_id{rp.Pop<u32>()}; 69 const u32 font_id{rp.Pop<u32>()};
diff --git a/src/core/hle/service/ns/pl_u.h b/src/core/hle/service/ns/pl_u.h
index 7a4766338..360482d13 100644
--- a/src/core/hle/service/ns/pl_u.h
+++ b/src/core/hle/service/ns/pl_u.h
@@ -17,6 +17,7 @@ public:
17 ~PL_U() = default; 17 ~PL_U() = default;
18 18
19private: 19private:
20 void RequestLoad(Kernel::HLERequestContext& ctx);
20 void GetLoadState(Kernel::HLERequestContext& ctx); 21 void GetLoadState(Kernel::HLERequestContext& ctx);
21 void GetSize(Kernel::HLERequestContext& ctx); 22 void GetSize(Kernel::HLERequestContext& ctx);
22 void GetSharedMemoryAddressOffset(Kernel::HLERequestContext& ctx); 23 void GetSharedMemoryAddressOffset(Kernel::HLERequestContext& ctx);