mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 07:25:26 +00:00
VM_CAST macro
This commit is contained in:
parent
8c00dcd02d
commit
721ad404d2
17 changed files with 259 additions and 257 deletions
|
|
@ -10,7 +10,7 @@ u64 vfsStreamMemory::Write(const void* src, u64 count)
|
|||
count = m_size - m_pos;
|
||||
}
|
||||
|
||||
memcpy(vm::get_ptr<void>(vm::cast(m_addr + m_pos)), src, count);
|
||||
memcpy(vm::get_ptr<void>(VM_CAST(m_addr + m_pos)), src, count);
|
||||
m_pos += count;
|
||||
return count;
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ u64 vfsStreamMemory::Read(void* dst, u64 count)
|
|||
count = m_size - m_pos;
|
||||
}
|
||||
|
||||
memcpy(dst, vm::get_ptr<void>(vm::cast(m_addr + m_pos)), count);
|
||||
memcpy(dst, vm::get_ptr<void>(VM_CAST(m_addr + m_pos)), count);
|
||||
m_pos += count;
|
||||
return count;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue