Reset DS object directly after creation

This commit is contained in:
RSDuck 2023-12-21 22:15:12 +01:00
parent ed650f2b46
commit 084747abc5
1 changed files with 1 additions and 0 deletions

View File

@ -335,6 +335,7 @@ bool EmuThread::UpdateConsole(UpdateConsoleNDSArgs&& ndsargs, UpdateConsoleGBAAr
NDS::Current = nullptr; NDS::Current = nullptr;
NDS = CreateConsole(std::move(nextndscart), std::move(nextgbacart)); NDS = CreateConsole(std::move(nextndscart), std::move(nextgbacart));
NDS->Reset();
NDS::Current = NDS.get(); NDS::Current = NDS.get();
return NDS != nullptr; return NDS != nullptr;