From 380fec3ef3a4bc76159cbf4c20c1d1832c1eb704 Mon Sep 17 00:00:00 2001 From: orboditilt <45944072+orboditilt@users.noreply.github.com> Date: Tue, 8 Jan 2019 15:56:31 +0100 Subject: [PATCH] Use a fixed size for copy pasting the code to codegen. --- wiiu_browserhax_common.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/wiiu_browserhax_common.php b/wiiu_browserhax_common.php index f8afd24..654f9d9 100644 --- a/wiiu_browserhax_common.php +++ b/wiiu_browserhax_common.php @@ -29,9 +29,6 @@ if($filesysver == 540)$filesysver = 532; require_once("wiiuhaxx_rop_sysver_$filesysver.php"); - -if(!isset($payload_size)) $payload_size = 0x20000; //Doesn't really matter if the actual payload data size in memory is smaller than this or not. - if(!isset($ropchainselect))$ropchainselect = -1; if($ropchainselect == -1) { @@ -409,10 +406,10 @@ function ropgen_switchto_core1() function generateropchain_type1() { - global $ROP_OSFatal, $ROP_Exit, $ROP_OSDynLoad_Acquire, $ROP_OSDynLoad_FindExport, $ROP_os_snprintf, $payload_srcaddr, $ROPHEAP, $ROPCHAIN, $payload_size; + global $ROP_OSFatal, $ROP_Exit, $ROP_OSDynLoad_Acquire, $ROP_OSDynLoad_FindExport, $ROP_os_snprintf, $payload_srcaddr, $ROPHEAP, $ROPCHAIN; - //$payload_size = 0x20000; - $codegen_addr = 0x01800000; + $payload_size = 0x20000; + $codegen_addr = 0x01800000; //$payload_srcaddr must be defined by the code including this .php. //ropgen_colorfill(0x1, 0xff, 0xff, 0x0, 0xff);//Color-fill the gamepad screen with yellow.