diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-01-10 21:27:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 21:27:33 +0100 |
commit | cbcf210c19b3661e0edda03f22ef323cb5b30c26 (patch) | |
tree | f48957b563b25e43c180ada20c144f5a4749bdca /src/core/hle/kernel/k_code_memory.h | |
parent | Merge pull request #9601 from liamwhite/it-never-ends (diff) | |
parent | Revert "Revert "k_page_group: synchronize"" (diff) | |
download | yuzu-cbcf210c19b3661e0edda03f22ef323cb5b30c26.tar yuzu-cbcf210c19b3661e0edda03f22ef323cb5b30c26.tar.gz yuzu-cbcf210c19b3661e0edda03f22ef323cb5b30c26.tar.bz2 yuzu-cbcf210c19b3661e0edda03f22ef323cb5b30c26.tar.lz yuzu-cbcf210c19b3661e0edda03f22ef323cb5b30c26.tar.xz yuzu-cbcf210c19b3661e0edda03f22ef323cb5b30c26.tar.zst yuzu-cbcf210c19b3661e0edda03f22ef323cb5b30c26.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; |