customizemii/CustomizeMiiInstaller_Source/source/wad-manager.c
leathl abb6b9927d Implemented CustomizeMiiInstaler, Project Cleanup, etc...
git-svn-id: svn://localhost/Users/andi/Downloads/code/trunk@26 eddbe33b-e435-4246-ac25-f5eb65f9a13c
2010-01-12 17:03:46 +00:00

73 lines
1.4 KiB
C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ogcsys.h>
#include "gui.h"
#include "menu.h"
#include "restart.h"
#include "sys.h"
#include "video.h"
#include "wpad.h"
void Disclaimer(void)
{
/* Print disclaimer */
printf(" [DISCLAIMER]:\n\n");
printf(" THIS APPLICATION COMES WITH NO WARRANTY AT ALL,\n");
printf(" NEITHER EXPRESS NOR IMPLIED.\n");
printf(" I DO NOT TAKE ANY RESPONSIBILITY FOR ANY DAMAGE IN YOUR\n");
printf(" WII CONSOLE BECAUSE OF A IMPROPER USAGE OF THIS SOFTWARE.\n\n");
printf(">> If you agree and install the streamed wad\n");
printf(">> press A button to continue.\n");
printf(">> Otherwise, press B button to restart your Wii.\n");
/* Wait for user answer */
for (;;) {
u32 buttons = Wpad_WaitButtons();
/* A button */
if ((buttons & WPAD_BUTTON_A)||(buttons & PAD_BUTTON_A))
break;
/* B button */
if ((buttons & WPAD_BUTTON_B)||(buttons & WPAD_CLASSIC_BUTTON_B))
Restart();
}
}
int main(int argc, char **argv)
{
/* Initialize subsystems */
Sys_Init();
/* Set video mode */
Video_SetMode();
/* Initialize console */
Gui_InitConsole();
/* Draw background */
Gui_DrawBackground();
/* Load Selected IOS */
LoadSelectedIOS();
/* Initialize Wiimote */
Wpad_Init();
/* Print disclaimer */
Disclaimer();
/* Menu loop */
Menu_Loop();
/* Restart Wii */
Restart_Wait();
return 0;
}