diff options
author | Liam <byteslice@airmail.cc> | 2022-12-23 19:40:30 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-12-23 19:40:30 +0100 |
commit | 99eccf581e29e3a324242eb36af58f442737ba2d (patch) | |
tree | afbbeb6a8ac68a6998f3a1645a358e689c04bd3a /src/core/hle/kernel/k_shared_memory.h | |
parent | Merge pull request #9463 from liamwhite/manager-events (diff) | |
download | yuzu-99eccf581e29e3a324242eb36af58f442737ba2d.tar yuzu-99eccf581e29e3a324242eb36af58f442737ba2d.tar.gz yuzu-99eccf581e29e3a324242eb36af58f442737ba2d.tar.bz2 yuzu-99eccf581e29e3a324242eb36af58f442737ba2d.tar.lz yuzu-99eccf581e29e3a324242eb36af58f442737ba2d.tar.xz yuzu-99eccf581e29e3a324242eb36af58f442737ba2d.tar.zst yuzu-99eccf581e29e3a324242eb36af58f442737ba2d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/k_shared_memory.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/k_shared_memory.h b/src/core/hle/kernel/k_shared_memory.h index a96c55a3e..8b29f0b4a 100644 --- a/src/core/hle/kernel/k_shared_memory.h +++ b/src/core/hle/kernel/k_shared_memory.h @@ -3,6 +3,7 @@ #pragma once +#include <optional> #include <string> #include "common/common_types.h" @@ -26,9 +27,8 @@ public: ~KSharedMemory() override; Result Initialize(Core::DeviceMemory& device_memory_, KProcess* owner_process_, - KPageGroup&& page_list_, Svc::MemoryPermission owner_permission_, - Svc::MemoryPermission user_permission_, PAddr physical_address_, - std::size_t size_, std::string name_); + Svc::MemoryPermission owner_permission_, + Svc::MemoryPermission user_permission_, std::size_t size_, std::string name_); /** * Maps a shared memory block to an address in the target process' address space @@ -76,7 +76,7 @@ public: private: Core::DeviceMemory* device_memory{}; KProcess* owner_process{}; - KPageGroup page_list; + std::optional<KPageGroup> page_group{}; Svc::MemoryPermission owner_permission{}; Svc::MemoryPermission user_permission{}; PAddr physical_address{}; |