Oops small mistake

This commit is contained in:
SimoneN64 2023-07-10 20:53:51 +02:00
parent 53873c75cc
commit 340c18b87b

View file

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