mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-09 16:35:13 +00:00
MemoryBase::operator+ replaced
This commit is contained in:
parent
feec20ac3e
commit
db9cbe6cdd
24 changed files with 209 additions and 210 deletions
|
|
@ -31,7 +31,7 @@ u64 vfsStreamMemory::Write(const void* src, u64 size)
|
|||
size = GetSize() - Tell();
|
||||
}
|
||||
|
||||
memcpy(Memory + (m_addr + Tell()), (void*)src, size);
|
||||
memcpy(vm::get_ptr<void>(m_addr + Tell()), src, size);
|
||||
|
||||
return vfsStream::Write(src, size);
|
||||
}
|
||||
|
|
@ -43,7 +43,7 @@ u64 vfsStreamMemory::Read(void* dst, u64 size)
|
|||
size = GetSize() - Tell();
|
||||
}
|
||||
|
||||
memcpy(dst, Memory + (m_addr + Tell()), size);
|
||||
memcpy(dst, vm::get_ptr<void>(m_addr + Tell()), size);
|
||||
|
||||
return vfsStream::Read(dst, size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue