From 283de943d7250fac07ecd5f989ce9304603e0f7f Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 11 Jul 2015 14:06:28 -0500 Subject: [PATCH] dont fail importing firmwares when target directory doesnt exist --- BizHawk.Client.EmuHawk/config/FirmwaresConfig.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/BizHawk.Client.EmuHawk/config/FirmwaresConfig.cs b/BizHawk.Client.EmuHawk/config/FirmwaresConfig.cs index e4d783cf26..8762d580df 100644 --- a/BizHawk.Client.EmuHawk/config/FirmwaresConfig.cs +++ b/BizHawk.Client.EmuHawk/config/FirmwaresConfig.cs @@ -468,6 +468,7 @@ namespace BizHawk.Client.EmuHawk name += " (variant)"; target = Path.Combine(dir, name) + ext; } + Directory.CreateDirectory(Path.GetDirectoryName(target)); fi.CopyTo(target, false); return true; }