summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2022-02-19 14:18:02 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2022-10-06 21:00:53 +0200
commit5a568b1655f0d721891083da19e2da2614796389 (patch)
tree540d2c564bf84114484188000a871e90cf5e7772 /src/core
parentShader Decompiler: implement better tracking for Vulkan samplers. (diff)
downloadyuzu-5a568b1655f0d721891083da19e2da2614796389.tar
yuzu-5a568b1655f0d721891083da19e2da2614796389.tar.gz
yuzu-5a568b1655f0d721891083da19e2da2614796389.tar.bz2
yuzu-5a568b1655f0d721891083da19e2da2614796389.tar.lz
yuzu-5a568b1655f0d721891083da19e2da2614796389.tar.xz
yuzu-5a568b1655f0d721891083da19e2da2614796389.tar.zst
yuzu-5a568b1655f0d721891083da19e2da2614796389.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/memory.cpp9
-rw-r--r--src/core/memory.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index 34ad7cadd..2ac792566 100644
--- a/src/core/memory.cpp
+++ b/src/core/memory.cpp
@@ -551,6 +551,11 @@ struct Memory::Impl {
[]() {});
}
+ [[nodiscard]] u8* GetPointerSilent(const VAddr vaddr) const {
+ return GetPointerImpl(
+ vaddr, []() {}, []() {});
+ }
+
/**
* Reads a particular data type out of memory at the given virtual address.
*
@@ -686,6 +691,10 @@ u8* Memory::GetPointer(VAddr vaddr) {
return impl->GetPointer(vaddr);
}
+u8* Memory::GetPointerSilent(VAddr vaddr) {
+ return impl->GetPointerSilent(vaddr);
+}
+
const u8* Memory::GetPointer(VAddr vaddr) const {
return impl->GetPointer(vaddr);
}
diff --git a/src/core/memory.h b/src/core/memory.h
index a11ff8766..81eac448b 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -114,6 +114,7 @@ public:
* If the address is not valid, nullptr will be returned.
*/
u8* GetPointer(VAddr vaddr);
+ u8* GetPointerSilent(VAddr vaddr);
template <typename T>
T* GetPointer(VAddr vaddr) {