diff options
author | bunnei <bunneidev@gmail.com> | 2022-12-28 23:28:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-28 23:28:31 +0100 |
commit | 60419dd35e8d6dec97ec12839b5b9910167315d2 (patch) | |
tree | 95b7ee20365996ee1b3aae93c254343b9b496181 /src/core/hle/kernel/k_code_memory.h | |
parent | Merge pull request #9490 from ameerj/texture-cache-prealloc (diff) | |
parent | k_page_table: remove HACK_OpenPages/ClosePages (diff) | |
download | yuzu-60419dd35e8d6dec97ec12839b5b9910167315d2.tar yuzu-60419dd35e8d6dec97ec12839b5b9910167315d2.tar.gz yuzu-60419dd35e8d6dec97ec12839b5b9910167315d2.tar.bz2 yuzu-60419dd35e8d6dec97ec12839b5b9910167315d2.tar.lz yuzu-60419dd35e8d6dec97ec12839b5b9910167315d2.tar.xz yuzu-60419dd35e8d6dec97ec12839b5b9910167315d2.tar.zst yuzu-60419dd35e8d6dec97ec12839b5b9910167315d2.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; |