mirror of
https://github.com/wiiu-env/wiiuhaxx_common.git
synced 2024-12-18 12:11:50 +01:00
Flush the source before copying to codegen.
This commit is contained in:
parent
7896f5733e
commit
0ec1c42452
@ -344,6 +344,9 @@ function ropgen_copycodebin_to_codegen($codegen_addr, $codebin_addr, $codebin_si
|
||||
//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);
|
||||
ropgen_OSSwitchSecCodeGenMode(1);
|
||||
|
Loading…
Reference in New Issue
Block a user