From 0ec1c4245275875791a1cfd4abc51a866485a90d Mon Sep 17 00:00:00 2001 From: orboditilt <45944072+orboditilt@users.noreply.github.com> Date: Tue, 8 Jan 2019 15:59:06 +0100 Subject: [PATCH] Flush the source before copying to codegen. --- wiiu_browserhax_common.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wiiu_browserhax_common.php b/wiiu_browserhax_common.php index f73d8d7..b53ff57 100644 --- a/wiiu_browserhax_common.php +++ b/wiiu_browserhax_common.php @@ -343,6 +343,9 @@ function ropgen_copycodebin_to_codegen($codegen_addr, $codebin_addr, $codebin_si //ropgen_OSGetCodegenVirtAddrRange($ROPHEAP+0x200, $ROPHEAP+0x10+4); //ropgen_callfunc(0x103769C, 0x0, 0x0, 0x0, 0x0, 0x0);//5.5.0 getcodegeninfo syscall //ropgen_display_u32(0); + + ropgen_DCFlushRange($codebin_addr, $codebin_size); + ropgen_ICInvalidateRange($codebin_addr, $codebin_size); ropgen_OSSwitchSecCodeGenMode(0); ropgen_memcpy($codegen_addr, $codebin_addr, $codebin_size);