Add load_rom http server command

This commit is contained in:
offtkp 2023-07-26 16:36:37 +03:00
parent da3ec42326
commit 63f9cfe0c2
3 changed files with 60 additions and 4 deletions

View file

@ -114,6 +114,9 @@ void Emulator::render() {}
void Emulator::run() {
while (running) {
#ifdef PANDA3DS_ENABLE_HTTP_SERVER
httpServer.processActions();
#endif
runFrame();
HIDService& hid = kernel.getServiceManager().getHID();
@ -345,9 +348,6 @@ void Emulator::run() {
void Emulator::runFrame() {
if (romType != ROMType::None) {
#ifdef PANDA3DS_ENABLE_HTTP_SERVER
httpServer.processActions();
#endif
cpu.runFrame(); // Run 1 frame of instructions
gpu.display(); // Display graphics