homebrewfilter/installer/source/main.cpp
Christopher Roy Bratusek e1d22b4ada BUGFIX: installer now longer crashes on IOS58 + early controller init
Installer now supports Classic-Controller + GC-Controller (partially)
2012-03-21 19:30:49 +01:00

34 lines
654 B
C++

#include <malloc.h>
#include <wiiuse/wpad.h>
#include "RuntimeIOSPatch.h"
#include "menu.h"
#include "video.h"
#include "wad.h"
#include "Network/network.h"
#define HAVE_AHBPROT ((*(vu32*)0xcd800064 == 0xFFFFFFFF) ? 1 : 0)
//---------------------------------------------------------------------------------
int main(int argc, char **argv) {
//---------------------------------------------------------------------------------
// Initialise the video system
InitNetworkThread();
VIDEO_Init();
Video_SetMode();
if(HAVE_AHBPROT)
runtimePatchApply();
WPAD_Init();
PAD_Init();
menu();
SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0);
return 0;
}