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);