diff options
author | Liam <byteslice@airmail.cc> | 2022-12-24 03:32:13 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-12-25 18:55:21 +0100 |
commit | 3392fdac9be7f1ecf35f9dbbb8f686b208e52bec (patch) | |
tree | 6daa6c464720572d90c7af242ce739d3a4ba0991 /src/core/hle/kernel/k_code_memory.h | |
parent | Merge pull request #9500 from liamwhite/reentrant-shutdown (diff) | |
download | yuzu-3392fdac9be7f1ecf35f9dbbb8f686b208e52bec.tar yuzu-3392fdac9be7f1ecf35f9dbbb8f686b208e52bec.tar.gz yuzu-3392fdac9be7f1ecf35f9dbbb8f686b208e52bec.tar.bz2 yuzu-3392fdac9be7f1ecf35f9dbbb8f686b208e52bec.tar.lz yuzu-3392fdac9be7f1ecf35f9dbbb8f686b208e52bec.tar.xz yuzu-3392fdac9be7f1ecf35f9dbbb8f686b208e52bec.tar.zst yuzu-3392fdac9be7f1ecf35f9dbbb8f686b208e52bec.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/k_code_memory.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_code_memory.h b/src/core/hle/kernel/k_code_memory.h index 2e7e1436a..5b260b385 100644 --- a/src/core/hle/kernel/k_code_memory.h +++ b/src/core/hle/kernel/k_code_memory.h @@ -3,6 +3,8 @@ #pragma once +#include <optional> + #include "common/common_types.h" #include "core/device_memory.h" #include "core/hle/kernel/k_auto_object.h" @@ -49,11 +51,11 @@ public: return m_address; } size_t GetSize() const { - return m_is_initialized ? m_page_group.GetNumPages() * PageSize : 0; + return m_is_initialized ? m_page_group->GetNumPages() * PageSize : 0; } private: - KPageGroup m_page_group{}; + std::optional<KPageGroup> m_page_group{}; KProcess* m_owner{}; VAddr m_address{}; KLightLock m_lock; |