MelonDS: put [sync]setting before init; RTC requires this

This commit is contained in:
SuuperW 2020-04-14 07:02:43 -05:00
parent dc62ae7d3e
commit 657a7b8069
1 changed files with 4 additions and 3 deletions

View File

@ -101,13 +101,14 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
_resampler = new SpeexResampler(SpeexResampler.Quality.QUALITY_DEFAULT, 32768, 44100, 32768, 44100);
SetUpFiles();
if (!Init())
throw new Exception("Failed to init NDS.");
InitMemoryDomains();
PutSettings(settings as MelonSettings);
PutSyncSettings(syncSettings as MelonSyncSettings);
if (!Init())
throw new Exception("Failed to init NDS.");
InitMemoryDomains();
fixed (byte* f = file)
{
LoadROM(f, file.Length);