-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.c
More file actions
executable file
·43 lines (29 loc) · 896 Bytes
/
main.c
File metadata and controls
executable file
·43 lines (29 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include <nusys.h>
#include "stage00.h"
#include "ed64io_everdrive.h"
#include "ed64io_fault.h"
#include "ed64io_os_error.h"
#include "ed64io_usb.h"
NUContData contdata[1]; // storage for controller 1 inputs
void mainproc(void) {
// start everdrive communication
evd_init();
// register libultra error handler
ed64RegisterOSErrorHandler();
ed64ReplaceOSSyncPrintf();
// start thread which will catch and log errors
ed64StartFaultHandlerThread(NU_GFX_TASKMGR_THREAD_PRI);
// initialize the graphics system
nuGfxInit();
// initialize the controller manager
nuContInit();
// initialize the level
initStage00();
// set the update+draw callback to be called every frame
nuGfxFuncSet((NUGfxFunc)stage00);
// enable video output
nuGfxDisplayOn();
// send this thread into an infinite loop
while (1)
;
}