just_dance: Add JD2019

This commit is contained in:
Ash Logan 2023-03-21 23:44:42 +11:00
commit a555cfb03c

View file

@ -42,5 +42,16 @@ void Patch_just_dance(uint32_t titleVer, uint64_t titleId, const rplinfo& rpls)
// OpenSSL X509_verify_cert (just in case lol)
PatchInstruction((void*)(rpx->textAddr + 0x02537ca0), 0x9421ffb8, 0x38600001);
PatchInstruction((void*)(rpx->textAddr + 0x02537ca4), 0xbe21000c, 0x4e800020);
} else if (titleId == 0x00050000'10217000 && titleVer == 64) {
auto rpx = FindRPL(rpls, "wiiu_ua_engine_f.rpx");
if (!rpx) return;
DEBUG_FUNCTION_LINE("Detected JD2019 EUR v%d - patching...", titleVer);
// OpenSSL ssl_verify_cert_chain
PatchInstruction((void*)(rpx->textAddr + 0x02720acc), 0x40820024, 0x60000000);
PatchInstruction((void*)(rpx->textAddr + 0x02720ae8), 0x38600000, 0x38600001);
// OpenSSL X509_verify_cert (just in case lol)
PatchInstruction((void*)(rpx->textAddr + 0x027003a4), 0x9421ffb8, 0x38600001);
PatchInstruction((void*)(rpx->textAddr + 0x027003a8), 0xbe21000c, 0x4e800020);
}
}