From 340c18b87bfa681efee9417f3ed1782970e48064 Mon Sep 17 00:00:00 2001 From: SimoneN64 Date: Mon, 10 Jul 2023 20:53:51 +0200 Subject: [PATCH] Oops small mistake --- src/emulator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);