From 657a7b8069e26e88b53091620f80c44709f34b7f Mon Sep 17 00:00:00 2001 From: SuuperW Date: Tue, 14 Apr 2020 07:02:43 -0500 Subject: [PATCH] MelonDS: put [sync]setting before init; RTC requires this --- BizHawk.Emulation.Cores/Consoles/Nintendo/NDS/MelonDS.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/NDS/MelonDS.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/NDS/MelonDS.cs index 048ffb0c40..90433d41cf 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/NDS/MelonDS.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/NDS/MelonDS.cs @@ -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);