Add new HTTP(anda) commands

This commit is contained in:
wheremyfoodat 2023-07-26 20:12:36 +03:00
parent 8fb3096331
commit fa6ce2a7f2
4 changed files with 31 additions and 2 deletions

View file

@ -175,7 +175,7 @@ void Emulator::run() {
// Use the F4 button as a hot-key to pause or resume the emulator
// We can't use the audio play/pause buttons because it's annoying
case SDLK_F4: {
running ? pause() : resume();
togglePause();
break;
}
@ -364,6 +364,7 @@ void Emulator::run() {
// Only resume if a ROM is properly loaded
void Emulator::resume() { running = (romType != ROMType::None); }
void Emulator::pause() { running = false; }
void Emulator::togglePause() { running ? pause() : resume(); }
void Emulator::runFrame() {
if (running) {