diff --git a/wiiu_browserhax_common.php b/wiiu_browserhax_common.php index 169bb00..0afd3d0 100644 --- a/wiiu_browserhax_common.php +++ b/wiiu_browserhax_common.php @@ -8,7 +8,7 @@ if($ropchainselect == -1) $ropchainselect = 1; } -if(!isset($wiiuhaxxcfg_payloadfilepath) || (($ropchainselect != 4) && !isset($wiiuhaxxcfg_loaderfilepath)))die("The filepaths for wiiuhaxxcfg are not set in the cfg file."); +if(!isset($wiiuhaxxcfg_payloadfilepath) || (($ropchainselect < 4) && !isset($wiiuhaxxcfg_loaderfilepath)))die("The filepaths for wiiuhaxxcfg are not set in the cfg file."); if(!isset($sysver))$sysver = -1; @@ -510,6 +510,26 @@ function generateropchain_type3(){ ropgen_OSFatal($payload_srcaddr); } +function ropgen_GX2DirectCallDisplayList($addr,$size){ + global $ROP_GX2DirectCallDisplayList; + ropgen_callfunc($ROP_GX2DirectCallDisplayList, $addr, $size, 0x0, 0x0, 0x0); +} + +function ropgen_GX2Flush(){ + global $ROP_GX2Flush; + ropgen_callfunc($ROP_GX2Flush, 0x0, 0x0, 0x0, 0x0, 0x0); +} + +function ropgen_Register($namePtr,$nameSize,$arg3,$arg4){ + global $ROP_Register; + ropgen_callfunc($ROP_Register, $namePtr, $nameSize, $arg3, $arg4, 0x0); +} + +function ropgen_CopyToSaveArea($namePtr,$nameSize,$srcAddr,$srcLen){ + global $ROP_CopyToSaveArea; + ropgen_callfunc($ROP_CopyToSaveArea, $namePtr, $nameSize, $srcAddr, $srcLen, 0x0); +} + function generateropchain_type4() { global $ROP_OSFatal, $ROP_Exit, $ROPHEAP, $ROPCHAIN, $payload_tmp_address, $wiiuhaxxcfg_searchpayloadfilepath, $payload_start_search,$valid_payload_dst_address, $payload_search_for;