diff options
author | UnavailableDev <ggwildplay@gmail.com> | 2023-03-10 14:08:14 +0100 |
---|---|---|
committer | UnavailableDev <ggwildplay@gmail.com> | 2023-03-10 14:08:14 +0100 |
commit | 19737533abb3eeb90c97691618336b5cead14656 (patch) | |
tree | 01963569ac9bb4cb7e90744b06bdd6aba0560421 /src/main.c | |
parent | 1fdac4d8ab609e8d496918929eb963be3f3a824f (diff) | |
parent | 4a740898621dcfc16fe257b6fe8695c768ec4dd6 (diff) |
merge
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 20 |
1 files changed, 4 insertions, 16 deletions
@@ -1,8 +1,8 @@ #include <stdlib.h> -#include "main.h" -#include "ppu/ppu.h" #include "demo.h" +#include "input.h" +#include "main.h" bool g_hh_run = true; @@ -15,19 +15,7 @@ int main() { void hh_ppu_vblank_interrupt() { static unsigned long frame = 0; - frame++; - + hh_input_read(); hh_demo_loop(frame); -} - -void hh_setup() { - hh_ppu_init(); - - hh_demo_setup(); -} - -void hh_exit() { - g_hh_run = false; - - hh_ppu_deinit(); + frame++; } |