mirror of
https://gitlab.com/Nanolx/homebrewfilter.git
synced 2024-11-28 12:04:23 +01:00
34 lines
703 B
C++
34 lines
703 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();
|
||
|
|
||
|
// This function initialises the attached controllers
|
||
|
WPAD_Init();
|
||
|
|
||
|
if(HAVE_AHBPROT)
|
||
|
runtimePatchApply();
|
||
|
|
||
|
menu();
|
||
|
|
||
|
SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0);
|
||
|
|
||
|
return 0;
|
||
|
}
|