-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
63 lines (46 loc) · 1.06 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include <tari/log.h>
#include <tari/pvr.h>
#include <tari/physics.h>
#include <tari/framerateselectscreen.h>
#include <tari/drawing.h>
#include <tari/system.h>
#include <tari/wrapper.h>
#include "basetypes.h"
#include "titlescreen.h"
#include "texture.h"
#ifdef DREAMCAST
#include <kos.h>
KOS_INIT_FLAGS(INIT_DEFAULT);
extern uint8 romdisk[];
KOS_INIT_ROMDISK(romdisk);
uint32_t useRomDisk = 1;
#endif
// #define DEVELOP
void exitGame() {
#ifdef DEVELOP
abortSystem();
#else
returnToMenu();
#endif
}
int main(int argc, char** argv) {
(void)argc;
(void)argv;
setGameName("HAZY HANK");
initTariWrapperWithDefaultFlags();
logg("Check framerate");
setFont("/rd/fonts/dolmexica.hdr", "/rd/fonts/dolmexica.pkg");
FramerateSelectReturnType framerateReturnType = selectFramerate();
if (framerateReturnType == FRAMERATE_SCREEN_RETURN_ABORT) {
exitGame();
}
logg("Begin game routine");
loadAllTextures();
startScreenHandling(&TitleScreen);
unloadAllTextures();
exitGame();
return 0;
}
int wmain(int argc, char** argv) {
return main(argc, argv);
}