aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/main.c b/src/main.c
index 658fc94..a3a4351 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,19 +1,16 @@
#include <stdlib.h>
#include "main.h"
-#include "../test/ppu-stm-integration-demo/data.h"
+#include "demo.h"
+#include "ppu/ppu.h"
#include "ppu/internals.h"
bool g_hh_run = true;
-bool g_hh_test_complete = false;
-
void hh_ppu_vblank_interrupt() {
-#ifdef HH_TARGET_DESKTOP
- if (g_hh_test_complete) return;
-#endif
- hh_ppu_vram_dwrite((uint8_t*) HH_PPUINTDEMO_ARR, HH_PPUINTDEMO_LENGTH);
- g_hh_test_complete = true;
+ static unsigned long frame = 0;
+ hh_demo_loop(frame++);
+ hh_ppu_vram_flush();
}
int main() {