mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 10:48:36 +12:00
GetMemFromAddr, VirtualToRealAddr replaced
Some arg types changed
This commit is contained in:
parent
f298d0451e
commit
225dba754d
33 changed files with 263 additions and 185 deletions
|
@ -108,11 +108,6 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
template<typename T> void* VirtualToRealAddr(const T vaddr)
|
||||
{
|
||||
return GetMemFromAddr<T>(vaddr);
|
||||
}
|
||||
|
||||
u32 RealToVirtualAddr(const void* addr)
|
||||
{
|
||||
const u64 res = (u64)addr - (u64)GetBaseAddr();
|
||||
|
@ -313,11 +308,6 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
//template<typename T> void WriteString(const T addr, const std::string& str)
|
||||
//{
|
||||
// memcpy((char*)GetMemFromAddr<T>(addr), str.c_str(), str.size() + 1);
|
||||
//}
|
||||
|
||||
u32 GetUserMemTotalSize()
|
||||
{
|
||||
return UserMemory->GetSize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue