summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-04-25 05:01:27 +0200
committerSubv <subv2112@gmail.com>2018-04-25 18:55:30 +0200
commit5ab597041f885ed552344ff890a0dff6a53c1f1e (patch)
tree343a80cd9cbbabff9fcc1fdca907496858053dc2
parentGPU: Make the Textures::CopySwizzledData function accessible from the outside of the file. (diff)
downloadyuzu-5ab597041f885ed552344ff890a0dff6a53c1f1e.tar
yuzu-5ab597041f885ed552344ff890a0dff6a53c1f1e.tar.gz
yuzu-5ab597041f885ed552344ff890a0dff6a53c1f1e.tar.bz2
yuzu-5ab597041f885ed552344ff890a0dff6a53c1f1e.tar.lz
yuzu-5ab597041f885ed552344ff890a0dff6a53c1f1e.tar.xz
yuzu-5ab597041f885ed552344ff890a0dff6a53c1f1e.tar.zst
yuzu-5ab597041f885ed552344ff890a0dff6a53c1f1e.zip
-rw-r--r--src/core/memory.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index ff0420c56..9e5d1cd4b 100644
--- a/src/core/memory.cpp
+++ b/src/core/memory.cpp
@@ -657,6 +657,10 @@ void CopyBlock(const Kernel::Process& process, VAddr dest_addr, VAddr src_addr,
}
}
+void CopyBlock(VAddr dest_addr, VAddr src_addr, size_t size) {
+ CopyBlock(*Core::CurrentProcess(), dest_addr, src_addr, size);
+}
+
boost::optional<PAddr> TryVirtualToPhysicalAddress(const VAddr addr) {
if (addr == 0) {
return 0;