diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -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() { |