working on debug menu
This commit is contained in:
10
lib/ui.c
10
lib/ui.c
@ -9,6 +9,7 @@
|
||||
#include <cpu.h>
|
||||
#include <cart.h>
|
||||
#include <state.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <SDL.h>
|
||||
#include <SDL_ttf.h>
|
||||
@ -353,12 +354,9 @@ void ui_on_key(bool down, u32 key_code) {
|
||||
}
|
||||
}
|
||||
if(key_code == SDLK_d && down == true) {
|
||||
ppu_get_context()->debug = !ppu_get_context()->debug;
|
||||
if(ppu_get_context()->debug) {
|
||||
printf("PPU Debug Enabled\n");
|
||||
} else {
|
||||
printf("PPU Debug Disabled\n");
|
||||
}
|
||||
emu_get_context()->debug = true;
|
||||
debug_get_context()->state = DS_MAIN;
|
||||
emu_get_context()->paused = true;
|
||||
}
|
||||
if(key_code == SDLK_r && down == true) {
|
||||
emu_stop();
|
||||
|
Reference in New Issue
Block a user