usbloadergx/source/main.cpp
dimok321 973d8b2005 *Fixed compile error
*Converted every 4 spaces to a tab to make the source consistent on those
2011-07-25 22:28:22 +00:00

51 lines
993 B
C++

/****************************************************************************
* USB Loader GX Team
*
* Main loadup of the application
*
* libwiigui
* Tantric 2009
***************************************************************************/
#include <gccore.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/dir.h>
#include <ogcsys.h>
#include <unistd.h>
#include <locale.h>
#include <wiiuse/wpad.h>
#include <di/di.h>
#include <sys/iosupport.h>
#include "video.h"
#include "menu/menus.h"
#include "memory/mem2.h"
#include "wad/nandtitle.h"
#include "StartUpProcess.h"
#include "sys.h"
extern "C"
{
extern s32 MagicPatches(s32);
void __exception_setreload(int t);
}
int main(int argc, char *argv[])
{
MEM2_init(48);
__exception_setreload(20);
MagicPatches(1);
InitVideo();
InitGecko();
USBGeckoOutput();
NandTitles.Get();
setlocale(LC_ALL, "en.UTF-8");
if(StartUpProcess::Run(argc, argv) < 0)
return -1;
MainMenu(MENU_DISCLIST);
return 0;
}