mirror of
https://github.com/mogzol/sharpii.git
synced 2024-11-14 06:35:05 +01:00
bc65416cf7
- You can now download an IOS with -ios # in NUSD - Downloaded IOS wads are now named like so: IOS##-64-####.wad - Under certain conditions, when downloading a wad with NUS, it will not be saved in a folder, just as the WAD (see ReadMe) - If missing dll's are detected (WadInstaller or libWiiSharp), Sharpii will ask to download them, if they are required. - You can now use a .dol file instead of a .wad with the '-dol' in the WAD editor/packer - Probably a few other little things I have forgotten - Even more code cleanup and bug fixes
73 lines
1.4 KiB
C
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;
|
|
}
|