MemoryBase::operator[] replaced

This commit is contained in:
Nekotekina 2014-09-06 02:12:10 +04:00
parent db9cbe6cdd
commit 12becc6120
19 changed files with 74 additions and 87 deletions

View file

@ -318,19 +318,6 @@ public:
bool Map(const u64 addr, const u32 size);
bool Unmap(const u64 addr);
template<typename T> u8& operator[] (const T addr)
{
if ((u32)addr == addr)
{
return *((u8*)GetBaseAddr() + addr);
}
else
{
InvalidAddress(__FUNCTION__, addr);
return *(u8*)GetBaseAddr();
}
}
};
extern MemoryBase Memory;