mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 02:03:47 +01:00
Replace function in Omerta Chinmoku No Okite The Legacy
This commit is contained in:
1 parent
0ab6c544b7
commit
d032c3895b
2 files changed
+11
No files matched your search
@@ -1100,6 +1100,15 @@ static int Hook_unendingbloodycall_download_frame() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int Hook_omertachinmokunookitethelegacy_download_frame() {
|
||||
const u32 fb_address = Memory::Read_U32(currentMIPS->r[MIPS_REG_SP] + 4);
|
||||
if (Memory::IsVRAMAddress(fb_address)) {
|
||||
gpu->PerformMemoryDownload(fb_address, 0x00044000);
|
||||
CBreakPoints::ExecMemCheck(fb_address, true, 0x00044000, currentMIPS->pc);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef ARM
|
||||
#define JITFUNC(f) (&MIPSComp::ArmJit::f)
|
||||
#elif defined(ARM64)
|
||||
@@ -1203,6 +1212,7 @@ static const ReplacementTableEntry entries[] = {
|
||||
{ "shinigamitoshoujo_download_frame", &Hook_shinigamitoshoujo_download_frame, 0, REPFLAG_HOOKENTER, 0xBC },
|
||||
{ "atvoffroadfuryprodemo_download_frame", &Hook_atvoffroadfuryprodemo_download_frame, 0, REPFLAG_HOOKENTER, 0x80 },
|
||||
{ "unendingbloodycall_download_frame", &Hook_unendingbloodycall_download_frame, 0, REPFLAG_HOOKENTER, 0x54 },
|
||||
{ "omertachinmokunookitethelegacy_download_frame", &Hook_omertachinmokunookitethelegacy_download_frame, 0, REPFLAG_HOOKENTER, 0x88 },
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
@@ -345,6 +345,7 @@ static const HardHashTableEntry hardcodedHashes[] = {
|
||||
{ 0xa662359e30b829e4, 148, "memcmp", },
|
||||
{ 0xa6a03f0487a911b0, 392, "danganronpa1_1_download_frame", }, // Danganronpa 1
|
||||
{ 0xa8390e65fa087c62, 140, "vtfm_t_q", },
|
||||
{ 0xa85e48ee10b2dc50, 432, "omertachinmokunookitethelegacy_download_frame", }, // Omerta Chinmoku No Okite The Legacy
|
||||
{ 0xa85fe8abb88b1c6f, 52, "vector_sub_t", },
|
||||
{ 0xa9194e55cc586557, 268, "memcpy", },
|
||||
{ 0xa91b3d60bd75105b, 28, "vadd_t", },
|
||||
|
||||
Reference in new issue
Block a user