HLE: Remove misc usage of WriteStruct().

Prefer PSPPointer and notifying.
This commit is contained in:
Unknown W. Brackets committed 2022-09-03 10:44:11 -07:00
1 parent 867eb99505
commit 3a372aa615
6 files changed
+94 -75

No files matched your search

+9
View File
@@ -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);
}
}