diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-09-11 21:06:40 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-09-11 21:24:19 -0400 |
| commit | c061e27155a59d4563003e0f4f7364864f9b51d4 (patch) | |
| tree | c9e0748edd0e9d1487f5a8e32b2490078212dde1 /src/core/hle/service/ns/pl_u.h | |
| parent | 1470b85af9027106f16c888bb7f6a97d44fad304 (diff) | |
pl_u: Eliminate mutable file-scope state
Converts the PL_U internals to use the PImpl idiom and makes the state
part of the Impl struct, eliminating mutable global/file state.
Diffstat (limited to 'src/core/hle/service/ns/pl_u.h')
| -rw-r--r-- | src/core/hle/service/ns/pl_u.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/core/hle/service/ns/pl_u.h b/src/core/hle/service/ns/pl_u.h index 296c3db05..253f26a2a 100644 --- a/src/core/hle/service/ns/pl_u.h +++ b/src/core/hle/service/ns/pl_u.h @@ -5,7 +5,6 @@ #pragma once #include <memory> -#include "core/hle/kernel/shared_memory.h" #include "core/hle/service/service.h" namespace Service::NS { @@ -23,11 +22,8 @@ private: void GetSharedMemoryNativeHandle(Kernel::HLERequestContext& ctx); void GetSharedFontInOrderOfPriority(Kernel::HLERequestContext& ctx); - /// Handle to shared memory region designated for a shared font - Kernel::SharedPtr<Kernel::SharedMemory> shared_font_mem; - - /// Backing memory for the shared font data - std::shared_ptr<std::vector<u8>> shared_font; + struct Impl; + std::unique_ptr<Impl> impl; }; } // namespace Service::NS |
