mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-14 12:40:11 +00:00
Merge pull request #7329 from daniel229/utawarerumono_func_replace
Function replace in Utawarerumono portable
This commit is contained in:
commit
b9b96f1416
@ -904,6 +904,15 @@ static int Hook_motorstorm_download_frame() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int Hook_utawarerumono_download_frame() {
|
||||
const u32 fb_address = currentMIPS->r[MIPS_REG_A0];
|
||||
if (Memory::IsVRAMAddress(fb_address)) {
|
||||
gpu->PerformMemoryDownload(fb_address, 0x00088000);
|
||||
CBreakPoints::ExecMemCheck(fb_address, true, 0x00088000, currentMIPS->pc);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef ARM
|
||||
#define JITFUNC(f) (&MIPSComp::ArmJit::f)
|
||||
#elif defined(_M_X64) || defined(_M_IX86)
|
||||
@ -988,6 +997,7 @@ static const ReplacementTableEntry entries[] = {
|
||||
{ "toheart2_download_frame_2", &Hook_toheart2_download_frame_2, 0, REPFLAG_HOOKENTER, 0x18 },
|
||||
{ "flowers_download_frame", &Hook_flowers_download_frame, 0, REPFLAG_HOOKENTER, 0x44 },
|
||||
{ "motorstorm_download_frame", &Hook_motorstorm_download_frame, 0, REPFLAG_HOOKENTER, },
|
||||
{ "utawarerumono_download_frame", &Hook_utawarerumono_download_frame, 0, REPFLAG_HOOKENTER, },
|
||||
{}
|
||||
};
|
||||
|
||||
|
@ -132,6 +132,7 @@ static const HardHashTableEntry hardcodedHashes[] = {
|
||||
{ 0x1d03fa48334ca966, 556, "_strtol_r", },
|
||||
{ 0x1d1311966d2243e9, 428, "suikoden1_and_2_download_frame_1", }, // Gensou Suikoden 1&2
|
||||
{ 0x1d7de04b4e87d00b, 680, "kankabanchoutbr_download_frame", }, // Kenka Banchou Bros: Tokyo Battle Royale
|
||||
{ 0x1daf6eaf0442391d, 1024, "utawarerumono_download_frame", }, // Utawarerumono portable
|
||||
{ 0x1e1525e3bc2f6703, 676, "rint", },
|
||||
{ 0x1ec055f28bb9f4d1, 88, "gu_update_stall", },
|
||||
{ 0x1f53eac122f96b37, 224, "cosf", },
|
||||
|
Loading…
Reference in New Issue
Block a user