summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ns
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-03-25 09:13:36 +0200
committerbunnei <bunneidev@gmail.com>2018-03-25 09:23:52 +0200
commit868f7f18b9a2044b120f310e67004e52146fe034 (patch)
treeff1de948d83db2d5a8dfe8ac1be21fbb08db3698 /src/core/hle/service/ns
parentMerge pull request #275 from MerryMage/addticks-dynarmic (diff)
downloadyuzu-868f7f18b9a2044b120f310e67004e52146fe034.tar
yuzu-868f7f18b9a2044b120f310e67004e52146fe034.tar.gz
yuzu-868f7f18b9a2044b120f310e67004e52146fe034.tar.bz2
yuzu-868f7f18b9a2044b120f310e67004e52146fe034.tar.lz
yuzu-868f7f18b9a2044b120f310e67004e52146fe034.tar.xz
yuzu-868f7f18b9a2044b120f310e67004e52146fe034.tar.zst
yuzu-868f7f18b9a2044b120f310e67004e52146fe034.zip
Diffstat (limited to 'src/core/hle/service/ns')
-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 {
PL_U::PL_U() : ServiceFramework("pl:u") {
static const FunctionInfo functions[] = {
+ {0, &PL_U::RequestLoad, "RequestLoad"},
{1, &PL_U::GetLoadState, "GetLoadState"},
{2, &PL_U::GetSize, "GetSize"},
{3, &PL_U::GetSharedMemoryAddressOffset, "GetSharedMemoryAddressOffset"},
@@ -54,6 +55,15 @@ PL_U::PL_U() : ServiceFramework("pl:u") {
}
}
+void PL_U::RequestLoad(Kernel::HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+ const u32 shared_font_type{rp.Pop<u32>()};
+
+ LOG_DEBUG(Service_NS, "called, shared_font_type=%d", shared_font_type);
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+}
+
void PL_U::GetLoadState(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
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:
~PL_U() = default;
private:
+ void RequestLoad(Kernel::HLERequestContext& ctx);
void GetLoadState(Kernel::HLERequestContext& ctx);
void GetSize(Kernel::HLERequestContext& ctx);
void GetSharedMemoryAddressOffset(Kernel::HLERequestContext& ctx);