Arn

Joined 17 years ago
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

BootMii/IOS launch program

#include <stdio.h>
#include <stdlib.h>
#include <gccore.h>

static void *xfb = NULL;
static GXRModeObj *rmode = NULL;

s32 __IOS_LoadStartupIOS()
{
	return 0;
}

int main(int argc, char **argv) {
	VIDEO_Init();
	rmode = VIDEO_GetPreferredMode(NULL);
	xfb = MEM_K0_TO_K1(SYS_AllocateFramebuffer(rmode));
	console_init(xfb,20,20,rmode->fbWidth,rmode->xfbHeight,
	             rmode->fbWidth*VI_DISPLAY_PIX_SZ);
	VIDEO_Configure(rmode);
	VIDEO_SetNextFramebuffer(xfb);
	VIDEO_SetBlack(FALSE);
	VIDEO_Flush();
	VIDEO_WaitVSync();
	if(rmode->viTVMode&VI_NON_INTERLACE) VIDEO_WaitVSync();

	printf("\x1b[2;0H");
	printf("Loading IOS254");
	
	IOS_ReloadIOS(254);
	return 0;
}

User information

  This user is running System Menu 4.1 on their Wii.
  This user has at least one trucha vulnerable IOS.
de This user is a native speaker of German.
  This user owns 3 Wii Remotes.
  This user owns 3 Nunchuks.
  This user owns 2 Classic Controllers.
  This user owns 4 GameCube Controllers.
  This user owns 2 Wii MotionPlus units.
  This user owns a Wii Speak.
  This user uses Wi-Fi.
  This user owns a 2GB+1GB SD card.
  This user owns a 8GB SDHC card.
 
This user beta tests homebrew.
  This user has installed BootMii on their Wii.
  This user has installed DVDX on their Wii.
  This user uses MPlayer CE to play media on their Wii.
  This user owns 1 Nintendo DS Lite.
  This user has installed the Homebrew Channel on their Wii.