Don't call Reset on nullptr

This commit is contained in:
Nadia Holmquist Pedersen 2023-12-26 08:49:02 +01:00
parent ac3153d86b
commit 740489f7a4

View File

@ -329,10 +329,14 @@ bool EmuThread::UpdateConsole(UpdateConsoleNDSArgs&& ndsargs, UpdateConsoleGBAAr
NDS::Current = nullptr;
NDS = CreateConsole(std::move(nextndscart), std::move(nextgbacart));
if (NDS == nullptr)
return false;
NDS->Reset();
NDS::Current = NDS.get();
return NDS != nullptr;
return true;
}
auto arm9bios = ROMManager::LoadARM9BIOS();