mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 10:48:36 +12:00
MemoryBase::operator[] replaced
This commit is contained in:
parent
db9cbe6cdd
commit
12becc6120
19 changed files with 74 additions and 87 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue