diff --git a/src/emulator.cpp b/src/emulator.cpp index 3d3678df..67510fea 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -90,6 +90,7 @@ void Emulator::run() { httpServer.startHttpServer(); #endif while (running) { + ServiceManager& srv = kernel.getServiceManager(); if(romLoaded) { #ifdef PANDA3DS_ENABLE_HTTP_SERVER pollHttpServer(); @@ -97,8 +98,6 @@ void Emulator::run() { runFrame(); // Run 1 frame of instructions gpu.display(); // Display graphics - ServiceManager& srv = kernel.getServiceManager(); - // Send VBlank interrupts srv.sendGPUInterrupt(GPUInterrupt::VBlank0); srv.sendGPUInterrupt(GPUInterrupt::VBlank1);