mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-08 16:05:56 +00:00
memcpy partially replaced
Fixed one of exit issues
This commit is contained in:
parent
8bd0ee875c
commit
8b952bf98c
16 changed files with 136 additions and 30 deletions
|
|
@ -32,7 +32,7 @@ u64 vfsStreamMemory::Write(const void* src, u64 size)
|
|||
|
||||
if(!size || !Memory.IsGoodAddr(m_addr + Tell(), size)) return 0;
|
||||
|
||||
memcpy(&Memory[m_addr + Tell()], src, size);
|
||||
Memory.CopyFromReal(m_addr + Tell(), (void*)src, size);
|
||||
|
||||
return vfsStream::Write(src, size);
|
||||
}
|
||||
|
|
@ -46,7 +46,7 @@ u64 vfsStreamMemory::Read(void* dst, u64 size)
|
|||
|
||||
if(!size || !Memory.IsGoodAddr(m_addr + Tell(), size)) return 0;
|
||||
|
||||
memcpy(dst, &Memory[m_addr + Tell()], size);
|
||||
Memory.CopyToReal(dst, m_addr + Tell(), size);
|
||||
|
||||
return vfsStream::Read(dst, size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue