From 358f1dfd3337cbddc750545cd2215a9af6b74bc4 Mon Sep 17 00:00:00 2001 From: SuuperW Date: Mon, 13 Apr 2020 16:55:16 -0500 Subject: [PATCH] create melon folder before trying to write modified firmware file --- BizHawk.Emulation.Cores/Consoles/Nintendo/NDS/MelonDS.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/NDS/MelonDS.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/NDS/MelonDS.cs index 19a012ca10..2677933858 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/NDS/MelonDS.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/NDS/MelonDS.cs @@ -159,6 +159,8 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS /// Returns a path to the new file. public static string CreateModifiedFirmware(string firmwarePath) { + Directory.CreateDirectory("melon"); + const string newPath = "melon/tohash.bin"; byte[] bytes = File.ReadAllBytes(firmwarePath);