Hi! Here's a code I found on the Internet (credits go to giantpune):
CODE//super complicated channel loader- giantpune
#include
#include
//#include
#include
#define TITLE_ID(x,y) (((u64)(x) viTVMode&VI_NON_INTERLACE) VIDEO_WaitVSync();
//if you want to put a splash screen, put it here, but it will just be a waste of time. the splash in the forwarder
//is only showed while loading dols into memory, this would be shown before the channel even started to load
//so i wouldn't do it.
WII_Initialize();
//just change the 4A4F4449 to the hex value for the ID4 of the title to boot.
//all channels that show up on the system menu should be 00010001
WII_LaunchTitle(TITLE_ID(0x00010001,0x4A4F4449));
//should not reach this point if the title is installed on the wii, but if it does, it will fall back on a stub to direct it
//if using a newer version of libogc, exit(0) returns the system menu if no stub is found.
exit (0);
//really, really should never make it this far. if it does, the wii will just blackscreen and need a hard reset
return 0;
}
I compiled it and it worked properly; it launches new HBC from NAND. The thing is that I want to change that code so that it looks for new HBC but if it doesn't find it, looks for JODI and HAXX. Here's what I changed:
CODE#include
#include
//#include
#include
#define TITLE_ID(x,y) (((u64)(x) viTVMode&VI_NON_INTERLACE) VIDEO_WaitVSync();
WII_Initialize();
printf("Launching Homebrew Channel 1.0.7/1.0.8");
WII_LaunchTitle(TITLE_ID(0x00010001,0xAF1BF516));
If (WII_LaunchTitle(TITLE_ID(0x00010001,0xAF1BF516))
CODE//super complicated channel loader- giantpune
#include
#include
//#include
#include
#define TITLE_ID(x,y) (((u64)(x) viTVMode&VI_NON_INTERLACE) VIDEO_WaitVSync();
//if you want to put a splash screen, put it here, but it will just be a waste of time. the splash in the forwarder
//is only showed while loading dols into memory, this would be shown before the channel even started to load
//so i wouldn't do it.
WII_Initialize();
//just change the 4A4F4449 to the hex value for the ID4 of the title to boot.
//all channels that show up on the system menu should be 00010001
WII_LaunchTitle(TITLE_ID(0x00010001,0x4A4F4449));
//should not reach this point if the title is installed on the wii, but if it does, it will fall back on a stub to direct it
//if using a newer version of libogc, exit(0) returns the system menu if no stub is found.
exit (0);
//really, really should never make it this far. if it does, the wii will just blackscreen and need a hard reset
return 0;
}
I compiled it and it worked properly; it launches new HBC from NAND. The thing is that I want to change that code so that it looks for new HBC but if it doesn't find it, looks for JODI and HAXX. Here's what I changed:
CODE#include
#include
//#include
#include
#define TITLE_ID(x,y) (((u64)(x) viTVMode&VI_NON_INTERLACE) VIDEO_WaitVSync();
WII_Initialize();
printf("Launching Homebrew Channel 1.0.7/1.0.8");
WII_LaunchTitle(TITLE_ID(0x00010001,0xAF1BF516));
If (WII_LaunchTitle(TITLE_ID(0x00010001,0xAF1BF516))