mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-19 09:19:05 +02:00
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:
1 parent
3fafb3d291
commit
5bdb9e976b
8 files changed
+77
-40
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user