From a555cfb03c8d78b060c869165d5b5b400ac82fc0 Mon Sep 17 00:00:00 2001 From: Ash Logan Date: Tue, 21 Mar 2023 23:44:42 +1100 Subject: [PATCH] just_dance: Add JD2019 --- src/patcher/patches/just_dance.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/patcher/patches/just_dance.cpp b/src/patcher/patches/just_dance.cpp index 11c18f3..19366a2 100644 --- a/src/patcher/patches/just_dance.cpp +++ b/src/patcher/patches/just_dance.cpp @@ -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); } }