blob: f4de22540ec5017aa6824ca2942c5538219e51c4 (
plain)
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
|
#include <stdlib.h>
#include "main.h"
#include "ppu/ppu.h"
#include "demo.h"
bool g_hh_run = true;
int main() {
hh_setup();
hh_loop();
hh_exit();
return 0;
}
void hh_ppu_vblank_interrupt() {
static unsigned long frame = 0;
frame++;
hh_demo_loop(frame);
}
void hh_setup() {
hh_ppu_init();
hh_demo_setup();
}
void hh_exit() {
g_hh_run = false;
hh_ppu_deinit();
}
|