mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
Don't call Reset on nullptr
This commit is contained in:
@ -329,10 +329,14 @@ 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));
|
||||||
|
|
||||||
|
if (NDS == nullptr)
|
||||||
|
return false;
|
||||||
|
|
||||||
NDS->Reset();
|
NDS->Reset();
|
||||||
NDS::Current = NDS.get();
|
NDS::Current = NDS.get();
|
||||||
|
|
||||||
return NDS != nullptr;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto arm9bios = ROMManager::LoadARM9BIOS();
|
auto arm9bios = ROMManager::LoadARM9BIOS();
|
||||||
|
Reference in New Issue
Block a user