mirror of
https://github.com/wiiu-env/MochaPayload.git
synced 2024-11-17 13:39:18 +01:00
Patch the update checks
This commit is contained in:
parent
76ed489e0c
commit
8a8afd4135
@ -69,6 +69,11 @@ void instant_patches_setup(void) {
|
|||||||
// allow custom bootLogoTex and bootMovie.h264
|
// allow custom bootLogoTex and bootMovie.h264
|
||||||
*(volatile u32 *) (0xE0030D68 - 0xE0000000 + 0x12900000) = 0xE3A00000; // mov r0, #0
|
*(volatile u32 *) (0xE0030D68 - 0xE0000000 + 0x12900000) = 0xE3A00000; // mov r0, #0
|
||||||
*(volatile u32 *) (0xE0030D34 - 0xE0000000 + 0x12900000) = 0xE3A00000; // mov r0, #0
|
*(volatile u32 *) (0xE0030D34 - 0xE0000000 + 0x12900000) = 0xE3A00000; // mov r0, #0
|
||||||
|
|
||||||
|
// Patch update check
|
||||||
|
*(volatile u32 *) (0xe22830e0 - 0xe2280000 + 0x13140000) = 0x00000000;
|
||||||
|
*(volatile u32 *) (0xe22b2a78 - 0xe2280000 + 0x13140000) = 0x00000000;
|
||||||
|
*(volatile u32 *) (0xe204fb68 - 0xe2000000 + 0x12EC0000) = 0xe3a00000;
|
||||||
|
|
||||||
// allow any region title launch
|
// allow any region title launch
|
||||||
*(volatile u32 *) (0xE0030498 - 0xE0000000 + 0x12900000) = 0xE3A00000; // mov r0, #0
|
*(volatile u32 *) (0xE0030498 - 0xE0000000 + 0x12900000) = 0xE3A00000; // mov r0, #0
|
||||||
|
@ -112,6 +112,11 @@ void kernel_run_patches(u32 ios_elf_start) {
|
|||||||
section_write_word(ios_elf_start, 0x1073994C, 0xe3a07020);
|
section_write_word(ios_elf_start, 0x1073994C, 0xe3a07020);
|
||||||
section_write_word(ios_elf_start, 0x10739950, 0xea000013);
|
section_write_word(ios_elf_start, 0x10739950, 0xea000013);
|
||||||
|
|
||||||
|
// update check
|
||||||
|
section_write_word(ios_elf_start, 0xe22830e0, 0x00000000);
|
||||||
|
section_write_word(ios_elf_start, 0xe22b2a78, 0x00000000);
|
||||||
|
section_write_word(ios_elf_start, 0xe204fb68, 0xe3a00000);
|
||||||
|
|
||||||
section_write_word(ios_elf_start, 0x0812CD2C, ARM_B(0x0812CD2C, kernel_syscall_0x81));
|
section_write_word(ios_elf_start, 0x0812CD2C, ARM_B(0x0812CD2C, kernel_syscall_0x81));
|
||||||
|
|
||||||
u32 patch_count = (u32) (((u8 *) kernel_patches_table_end) - ((u8 *) kernel_patches_table)) / sizeof(patch_table_t);
|
u32 patch_count = (u32) (((u8 *) kernel_patches_table_end) - ((u8 *) kernel_patches_table)) / sizeof(patch_table_t);
|
||||||
|
Loading…
Reference in New Issue
Block a user