dont fail importing firmwares when target directory doesnt exist

This commit is contained in:
zeromus 2015-07-11 14:06:28 -05:00
parent a7ae3c0cfc
commit 283de943d7
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}