GetMemFromAddr, VirtualToRealAddr replaced

Some arg types changed
This commit is contained in:
Nekotekina 2014-09-05 21:23:00 +04:00
parent f298d0451e
commit 225dba754d
33 changed files with 263 additions and 185 deletions

View file

@ -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();