Track copies of framebuffers in ram created through sceDmacMemcpy, so that we can display them.

Fixes MotoGP while also, in effect, committing #3859.
Removes the horrifying ramDisplayFramebufferPtr hack.
This commit is contained in:
Henrik Rydgard committed 2013-09-21 18:53:55 +02:00
1 parent 3fafb3d291
commit 5bdb9e976b
8 files changed
+77 -40

No files matched your search

+15 -2
View File
@@ -145,8 +145,7 @@ inline void WriteToHardware(u32 address, const T data)
// =====================
bool IsValidAddress(const u32 address)
{
bool IsValidAddress(const u32 address) {
if ((address & 0x3E000000) == 0x08000000) {
return true;
}
@@ -163,6 +162,20 @@ bool IsValidAddress(const u32 address)
return false;
}
bool IsRAMAddress(const u32 address) {
if ((address & 0x3E000000) == 0x08000000) {
return true;
} else if ((address & 0x3F000000) >= 0x08000000 && (address & 0x3F000000) < 0x08000000 + g_MemorySize) {
return true;
} else {
return false;
}
}
bool IsVRAMAddress(const u32 address) {
return ((address & 0x3F800000) == 0x04000000);
}
u8 Read_U8(const u32 _Address)
{
u8 _var = 0;