mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
HLE: Remove misc usage of WriteStruct().
Prefer PSPPointer and notifying.
This commit is contained in:
1 parent
867eb99505
commit
3a372aa615
6 files changed
+94
-75
No files matched your search
@@ -490,3 +490,12 @@ void Memset(const u32 _Address, const u8 _iValue, const u32 _iLength, const char
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
void PSPPointerNotifyRW(int rw, uint32_t ptr, uint32_t bytes, const char * tag, size_t tagLen) {
|
||||
if (MemBlockInfoDetailed(bytes)) {
|
||||
if (rw & 1)
|
||||
NotifyMemInfo(MemBlockFlags::WRITE, ptr, bytes, tag, tagLen);
|
||||
if (rw & 2)
|
||||
NotifyMemInfo(MemBlockFlags::READ, ptr, bytes, tag, tagLen);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user