mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 03:03:50 +01:00
Replace frame download in danganronpa 1
This commit is contained in:
1 parent
a7cf3aeafc
commit
ef1484da65
2 files changed
+14
No files matched your search
@@ -753,6 +753,18 @@ static int Hook_danganronpa2_2_download_frame() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int Hook_danganronpa1_1_download_frame() {
|
||||
const u32 fb_base = currentMIPS->r[MIPS_REG_A5];
|
||||
const u32 fb_offset = currentMIPS->r[MIPS_REG_V0];
|
||||
const u32 fb_offset_fix = fb_offset & 0xFFFFFFFC;
|
||||
const u32 fb_address = fb_base + fb_offset_fix;
|
||||
if (Memory::IsVRAMAddress(fb_address)) {
|
||||
gpu->PerformMemoryDownload(fb_address, 0x00088000);
|
||||
CBreakPoints::ExecMemCheck(fb_address, true, 0x00088000, currentMIPS->pc);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Can either replace with C functions or functions emitted in Asm/ArmAsm.
|
||||
static const ReplacementTableEntry entries[] = {
|
||||
// TODO: I think some games can be helped quite a bit by implementing the
|
||||
@@ -815,6 +827,7 @@ static const ReplacementTableEntry entries[] = {
|
||||
{ "bokunonatsuyasumi4_download_frame", &Hook_bokunonatsuyasumi4_download_frame, 0, REPFLAG_HOOKENTER, 0x8C },
|
||||
{ "danganronpa2_1_download_frame", &Hook_danganronpa2_1_download_frame, 0, REPFLAG_HOOKENTER, 0x68 },
|
||||
{ "danganronpa2_2_download_frame", &Hook_danganronpa2_2_download_frame, 0, REPFLAG_HOOKENTER, 0x94 },
|
||||
{ "danganronpa1_1_download_frame", &Hook_danganronpa1_1_download_frame, 0, REPFLAG_HOOKENTER, 0x78 },
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
@@ -311,6 +311,7 @@ static const HardHashTableEntry hardcodedHashes[] = {
|
||||
{ 0xa54967288afe8f26, 600, "ceil", },
|
||||
{ 0xa5ddbbc688e89a4d, 56, "isinf", },
|
||||
{ 0xa662359e30b829e4, 148, "memcmp", },
|
||||
{ 0xa6a03f0487a911b0, 392, "danganronpa1_1_download_frame", }, // Danganronpa 1
|
||||
{ 0xa8390e65fa087c62, 140, "vtfm_t_q", },
|
||||
{ 0xa85fe8abb88b1c6f, 52, "vector_sub_t", },
|
||||
{ 0xa9194e55cc586557, 268, "memcpy", },
|
||||
|
||||
Reference in new issue
Block a user