Skip to content

Instantly share code, notes, and snippets.

@ashquarky
Last active September 23, 2016 09:11
Show Gist options
  • Save ashquarky/54b503adc040ce2bab11a8204ea72c14 to your computer and use it in GitHub Desktop.
Save ashquarky/54b503adc040ce2bab11a8204ea72c14 to your computer and use it in GitHub Desktop.
[Code Golf] OurLoader (region free Wii U game loader) in 178 bytes
## CURRENTLY NOT WORKING ##
Download everything here:
https://puu.sh/rkWA1/030bd57728.zip
This project is basically a bare-bones HBL makefile and linker script, although the linker script is modified
to begin execution at "d" rather than the usual "__entry_menu". Check out the original OurLoader at
https://github.com/OurBrew/OurLoader/ or https://gbatemp.net/threads/441294/.
If you can do better, I'd love to see it! Will happily start competing, although I reckon I've done a pretty good job ;D
(edit 1: use UNIX line endings to save a byte)
#define d(x) ((a(*)())*((a*)0x801500+x))(
typedef int a;a e(a b,a(*c)()){d(0)"sysapp",&b);d(1)b,0,"_SYSLaunchTitleByPathFromLauncher",&c);c("/vol/storage_odd03",18,0);return -3;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment