working on debug menu
This commit is contained in:
14
lib/emu.c
14
lib/emu.c
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user