mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-03-03 11:37:20 +00:00
Merge pull request #6863 from daniel229/func_replace_narikosonai
Replace frame download in Narisokonai Eiyuutan
This commit is contained in:
commit
202c7192fa
@ -616,6 +616,15 @@ static int Hook_sd_gundam_g_generation_download_frame() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int Hook_narisokonai_download_frame() {
|
||||
const u32 fb_address = currentMIPS->r[MIPS_REG_V0];
|
||||
if (Memory::IsVRAMAddress(fb_address)) {
|
||||
gpu->PerformMemoryDownload(fb_address, 0x00044000);
|
||||
CBreakPoints::ExecMemCheck(fb_address, true, 0x00044000, 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
|
||||
@ -665,6 +674,7 @@ static const ReplacementTableEntry entries[] = {
|
||||
{ "brandish_download_frame", &Hook_brandish_download_frame, 0, REPFLAG_HOOKENTER },
|
||||
{ "growlanser_create_saveicon", &Hook_growlanser_create_saveicon, 0, REPFLAG_HOOKENTER, 0x7C },
|
||||
{ "sd_gundam_g_generation_download_frame", &Hook_sd_gundam_g_generation_download_frame, 0, REPFLAG_HOOKENTER, 0x48},
|
||||
{ "narisokonai_download_frame", &Hook_narisokonai_download_frame, 0, REPFLAG_HOOKENTER, 0x14 },
|
||||
{}
|
||||
};
|
||||
|
||||
|
@ -385,6 +385,7 @@ static const HardHashTableEntry hardcodedHashes[] = {
|
||||
{ 0xe1724e6e29209d97, 24, "vector_length_t_2", },
|
||||
{ 0xe1a5d939cc308195, 68, "wcscmp", },
|
||||
{ 0xe2d9106e5b9e39e6, 80, "strnlen", },
|
||||
{ 0xe3154c81a76515fa, 208, "narisokonai_download_frame", }, // Narisokonai Eiyuutan
|
||||
{ 0xe32cb5c062d1a1c4, 700, "_strtoull_r", },
|
||||
{ 0xe3835fb2c9c04e59, 44, "vmmul_q", },
|
||||
{ 0xe527c62d8613f297, 136, "strcpy", },
|
||||
|
Loading…
x
Reference in New Issue
Block a user