From 9bdb12e3da1f7f3f0607c6ff2673a54f1ed5dc72 Mon Sep 17 00:00:00 2001 From: Michael Yu Date: Mon, 19 May 2014 02:10:33 -0700 Subject: [PATCH] MEMORY: Added AppendRawBytes, which also advances the memory pointer unlike Memory.CopyFromReal --- rpcs3/Emu/Memory/Memory.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpcs3/Emu/Memory/Memory.h b/rpcs3/Emu/Memory/Memory.h index 61d7c872ff..e5d56a111c 100644 --- a/rpcs3/Emu/Memory/Memory.h +++ b/rpcs3/Emu/Memory/Memory.h @@ -795,6 +795,12 @@ public: return this->m_addr; } + u32 AppendRawBytes(const u8 * bytes, size_t count) { + Memory.CopyFromReal(this->m_addr, bytes, count); + this->m_addr += count; + return this->m_addr; + } + u32 Skip(const u32 offset) { return this->m_addr += offset; } operator be_t*() { return GetPtr(); }