create melon folder before trying to write modified firmware file

This commit is contained in:
SuuperW 2020-04-13 16:55:16 -05:00
parent 7336217bd8
commit 358f1dfd33
1 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,8 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
/// <returns>Returns a path to the new file.</returns>
public static string CreateModifiedFirmware(string firmwarePath)
{
Directory.CreateDirectory("melon");
const string newPath = "melon/tohash.bin";
byte[] bytes = File.ReadAllBytes(firmwarePath);