homebrewfilter/installer/source/main.cpp

34 lines
654 B
C++
Raw Normal View History

2011-10-15 17:31:29 +02:00
#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();
2011-10-15 17:31:29 +02:00
if(HAVE_AHBPROT)
runtimePatchApply();
WPAD_Init();
PAD_Init();
2011-10-15 17:31:29 +02:00
menu();
2011-10-15 17:31:29 +02:00
SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0);
return 0;
}