mirror of
https://gitlab.com/Nanolx/homebrewfilter.git
synced 2024-12-28 10:21:49 +01:00
32 lines
599 B
C++
32 lines
599 B
C++
|
|
#include <malloc.h>
|
|
#include <wiiuse/wpad.h>
|
|
|
|
#include "RuntimeIOSPatch.h"
|
|
#include "menu.h"
|
|
#include "video.h"
|
|
#include "wad.h"
|
|
|
|
#define HAVE_AHBPROT ((*(vu32*)0xcd800064 == 0xFFFFFFFF) ? 1 : 0)
|
|
|
|
//---------------------------------------------------------------------------------
|
|
int main(int argc, char **argv) {
|
|
//---------------------------------------------------------------------------------
|
|
|
|
// Initialise the video system
|
|
VIDEO_Init();
|
|
Video_SetMode();
|
|
|
|
if(HAVE_AHBPROT)
|
|
runtimePatchApply();
|
|
|
|
WPAD_Init();
|
|
PAD_Init();
|
|
|
|
menu();
|
|
|
|
WII_LaunchTitle(0x0001000154484246);
|
|
|
|
return 0;
|
|
}
|