summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2021-05-04 21:28:16 -0700
committerGravatar bunnei2021-05-05 16:40:54 -0700
commitd2c4dbde9e5b09ae85d6901e6c7b8424d2b36893 (patch)
tree01c68de2c4521a0034f59b1b0c1eb78220a0a658
parentfixup! hle: kernel: Migrate more of KThread to KAutoObject. (diff)
downloadyuzu-d2c4dbde9e5b09ae85d6901e6c7b8424d2b36893.tar.gz
yuzu-d2c4dbde9e5b09ae85d6901e6c7b8424d2b36893.tar.xz
yuzu-d2c4dbde9e5b09ae85d6901e6c7b8424d2b36893.zip
fixup! hle: kernel: Migrate KSharedMemory to KAutoObject.
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/ns/pl_u.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/ns/pl_u.cpp b/src/core/hle/service/ns/pl_u.cpp
index 82d847130..e14acce58 100644
--- a/src/core/hle/service/ns/pl_u.cpp
+++ b/src/core/hle/service/ns/pl_u.cpp
@@ -258,12 +258,12 @@ void PL_U::GetSharedMemoryNativeHandle(Kernel::HLERequestContext& ctx) {
258 // Create shared font memory object 258 // Create shared font memory object
259 auto& kernel = system.Kernel(); 259 auto& kernel = system.Kernel();
260 260
261 std::memcpy(system.Kernel().GetFontSharedMem().GetPointer(), impl->shared_font->data(), 261 std::memcpy(kernel.GetFontSharedMem().GetPointer(), impl->shared_font->data(),
262 impl->shared_font->size()); 262 impl->shared_font->size());
263 263
264 IPC::ResponseBuilder rb{ctx, 2, 1}; 264 IPC::ResponseBuilder rb{ctx, 2, 1};
265 rb.Push(RESULT_SUCCESS); 265 rb.Push(RESULT_SUCCESS);
266 rb.PushCopyObjects(&system.Kernel().GetFontSharedMem()); 266 rb.PushCopyObjects(&kernel.GetFontSharedMem());
267} 267}
268 268
269void PL_U::GetSharedFontInOrderOfPriority(Kernel::HLERequestContext& ctx) { 269void PL_U::GetSharedFontInOrderOfPriority(Kernel::HLERequestContext& ctx) {