aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl
diff options
context:
space:
mode:
authorRSDuck <RSDuck@users.noreply.github.com>2023-12-21 22:15:12 +0100
committerRSDuck <RSDuck@users.noreply.github.com>2023-12-21 22:15:12 +0100
commit084747abc52b22ace7ae02b895b343a789af7c67 (patch)
tree3a605ab69559549ec55e4eaf30c656b981671318 /src/frontend/qt_sdl
parented650f2b468ab951c7606d232f0a34e97c51eb77 (diff)
Reset DS object directly after creation
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r--src/frontend/qt_sdl/main.cpp1
1 files changed, 1 insertions, 0 deletions
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;