Skip to content

Commit

Permalink
when in cbhc/haxchi cfw, patch system menu version to be 99.99.99 to …
Browse files Browse the repository at this point in the history
…protect from potential updates
  • Loading branch information
FIX94 committed Dec 30, 2016
1 parent df41c59 commit 6d78599
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dsrom/cbhc_menu/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ static unsigned int getButtonsDown(unsigned int padscore_handle, unsigned int vp
#define SD_HBL_PATH "/vol/external01/wiiu/apps/homebrew_launcher/homebrew_launcher.elf"
#define SD_MOCHA_PATH "/vol/external01/wiiu/apps/mocha/mocha.elf"

static const char *verChar = "CBHC v1.5 by FIX94";
static const char *verChar = "CBHC v1.5u1 by FIX94";

#define DEFAULT_DISABLED 0
#define DEFAULT_SYSMENU 1
Expand Down
4 changes: 4 additions & 0 deletions dsrom/iosu_patcher/arm_kernel/source/elf_patcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ static inline void section_write_word(u32 ios_elf_start, u32 address, u32 word)
section_write(ios_elf_start, address, &word, sizeof(word));
}

static inline void section_write_ushort(u32 ios_elf_start, u32 address, u16 ushort)
{
section_write(ios_elf_start, address, &ushort, sizeof(ushort));
}

static inline void patch_table_entries(u32 ios_elf_start, const patch_table_t * patch_table, u32 patch_count)
{
Expand Down
5 changes: 5 additions & 0 deletions dsrom/iosu_patcher/arm_kernel/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ int _main()
*(volatile u32*)mcp_phys(0x05026BB0) = 0xE12FFF11; // bx r1
*(volatile u32*)mcp_phys(0x05026BB4) = wupserver_addr; // wupserver code

// patch system version number
*(volatile u16*)mcp_phys(0x0502F29A) = 0x2363; // movs r3, #99
*(volatile u16*)mcp_phys(0x0502F2AA) = 0x2363; // movs r3, #99
*(volatile u16*)mcp_phys(0x0502F2BA) = 0x2363; // movs r3, #99

// patch cert verification
*(volatile u32*)mcp_phys(0x05052A90) = 0xE3A00000; // mov r0, #0
*(volatile u32*)mcp_phys(0x05052A94) = 0xE12FFF1E; // bx lr
Expand Down
5 changes: 5 additions & 0 deletions dsrom/iosu_patcher/arm_kernel/source/reload.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ void kernel_launch_ios(u32 launch_address, u32 L, u32 C, u32 H)
section_write_word(ios_elf_start, 0x05052C44, 0xE3A00000); // mov r0, #0
section_write_word(ios_elf_start, 0x05052C48, 0xE12FFF1E); // bx lr

// patch system version number
section_write_ushort(ios_elf_start, 0x0502F29A, 0x2363); // movs r3, #99
section_write_ushort(ios_elf_start, 0x0502F2AA, 0x2363); // movs r3, #99
section_write_ushort(ios_elf_start, 0x0502F2BA, 0x2363); // movs r3, #99

// patch cached cert check
section_write_word(ios_elf_start, 0x05054D6C, 0xE3A00000); // mov r0, 0
section_write_word(ios_elf_start, 0x05054D70, 0xE12FFF1E); // bx lr
Expand Down
4 changes: 2 additions & 2 deletions installer/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ int availSort(const void *c1, const void *c2)
void printhdr_noflip()
{
#ifdef CB
println_noflip(0,"CBHC v1.5 by FIX94");
println_noflip(0,"CBHC v1.5u1 by FIX94");
#else
println_noflip(0,"Haxchi v2.5 by FIX94");
println_noflip(0,"Haxchi v2.5u1 by FIX94");
#endif
println_noflip(1,"Credits to smea, plutoo, yellows8, naehrwert, derrek and dimok");
}
Expand Down
4 changes: 2 additions & 2 deletions release/wiiu/apps/cbhc/meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<app version="1">
<name>CBHC</name>
<coder>FIX94</coder>
<version>1.5</version>
<version>1.5u1</version>
<url>https://github.com/FIX94/haxchi</url>
<release_date>20161229200000</release_date>
<release_date>20161230200000</release_date>
<short_description>Coldboot Haxchi Installer</short_description>
<long_description>WARNING! This will install Coldboot Haxchi on your system.
ONLY USE THIS IF YOU ARE WILLING TO TAKE A RISK OF BRICKING YOUR CONSOLE.
Expand Down
4 changes: 2 additions & 2 deletions release/wiiu/apps/haxchi/meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<app version="1">
<name>Haxchi</name>
<coder>FIX94</coder>
<version>2.5</version>
<version>2.5u1</version>
<url>https://github.com/FIX94/haxchi</url>
<release_date>20161229200000</release_date>
<release_date>20161230200000</release_date>
<short_description>Haxchi Installer</short_description>
<long_description>This will install Haxchi on your system.
</long_description>
Expand Down

0 comments on commit 6d78599

Please sign in to comment.