From 084747abc52b22ace7ae02b895b343a789af7c67 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Thu, 21 Dec 2023 22:15:12 +0100 Subject: Reset DS object directly after creation --- src/frontend/qt_sdl/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp index 9ada19b..0d775a5 100644 --- a/src/frontend/qt_sdl/main.cpp +++ b/src/frontend/qt_sdl/main.cpp @@ -335,6 +335,7 @@ bool EmuThread::UpdateConsole(UpdateConsoleNDSArgs&& ndsargs, UpdateConsoleGBAAr NDS::Current = nullptr; NDS = CreateConsole(std::move(nextndscart), std::move(nextgbacart)); + NDS->Reset(); NDS::Current = NDS.get(); return NDS != nullptr; -- cgit v1.2.3