forked from XboxDev/nxdk-rdt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
42 lines (35 loc) · 793 Bytes
/
main.c
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
#include <hal/video.h>
#include <hal/xbox.h>
#include <pbkit/pbkit.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <xboxkrnl/xboxkrnl.h>
#include <xboxrt/debug.h>
#include "net.h"
#include "gfx.h"
#include "dbgd.h"
/* Main program function */
void main(void)
{
gfx_init();
pb_print("NXDK Development Dash\n");
pb_show_debug_screen();
net_init();
dbgd_init();
while (1) NtYieldExecution();
/* Not ready for below yet, just stick to debug screen for now */
pb_show_front_screen();
while(1) {
gfx_begin();
gfx_draw_bg();
pb_draw_text_screen();
gfx_end();
gfx_present();
NtYieldExecution();
}
pb_show_debug_screen();
pb_kill();
}