working on debug menu

This commit is contained in:
2025-05-30 18:27:31 -06:00
parent bb572cce69
commit 604a6d79f2
10 changed files with 251 additions and 126 deletions

View File

@ -8,6 +8,7 @@
#include <ppu.h>
#include <audio.h>
#include <cart.h>
#include <debug.h>
#ifdef _WIN32
#include <windows.h>
@ -34,10 +35,10 @@ void *cpu_run(void *p) {
ctx.ticks = 0;
while (ctx.running) {
if (ctx.paused) {
delay(10);
continue;
}
//if (ctx.paused) {
// delay(10);
// continue;
//}
if (!cpu_step()) {
printf("CPU stopped\n");
@ -113,7 +114,7 @@ int emu_run(int argc, char **argv) {
#endif
u32 prev_frame = 0;
debug_init();
while(!ctx.die) {
sleep_ms(1);
ui_handle_events();
@ -121,6 +122,9 @@ int emu_run(int argc, char **argv) {
ui_update();
//}
//prev_frame = ppu_get_context()->current_frame;
if(ctx.debug) {
debug_update();
}
}