Skip to content

Commit

Permalink
Reset DS object directly after creation
Browse files Browse the repository at this point in the history
  • Loading branch information
RSDuck committed Dec 21, 2023
1 parent ed650f2 commit 084747a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/frontend/qt_sdl/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 084747a

Please sign in to comment.