diff options
author | RSDuck <RSDuck@users.noreply.github.com> | 2023-12-21 22:15:12 +0100 |
---|---|---|
committer | RSDuck <RSDuck@users.noreply.github.com> | 2023-12-21 22:15:12 +0100 |
commit | 084747abc52b22ace7ae02b895b343a789af7c67 (patch) | |
tree | 3a605ab69559549ec55e4eaf30c656b981671318 | |
parent | ed650f2b468ab951c7606d232f0a34e97c51eb77 (diff) |
Reset DS object directly after creation
-rw-r--r-- | src/frontend/qt_sdl/main.cpp | 1 |
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; |