mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 01:49:42 -06:00
EmuInstance: check consoleType from NDS rather than the instance's when
updating console, fixes crash on console type switch EmuInstance::consoleType is already updated, so the check for whether we should recreate the NDS to switch console type never succeeds.
This commit is contained in:
@ -1172,7 +1172,7 @@ bool EmuInstance::updateConsole(UpdateConsoleNDSArgs&& _ndsargs, UpdateConsoleGB
|
||||
}
|
||||
|
||||
|
||||
if ((!nds) || (consoletype != consoleType))
|
||||
if ((!nds) || (consoletype != nds->ConsoleType))
|
||||
{
|
||||
NDS::Current = nullptr;
|
||||
if (nds) delete nds;
|
||||
|
Reference in New Issue
Block a user