Update GameFileDumper.cs (#575)

Changed the Pro Design Editor to dump files as `nhpd` seeing as that is the extension it looks for upon import.
This commit is contained in:
crunchprank
2021-12-14 16:23:28 -05:00
committed by GitHub
parent 3045ee3c43
commit 9d327e0a25

View File

@@ -270,8 +270,8 @@ private static void Dump(this DesignPatternPRO dp, string path, int index, bool
{
var name = dp.DesignName;
string fn = indexed
? $"{index:00} - {name}.nhd"
: $"{name}.nhd";
? $"{index:00} - {name}.nhpd"
: $"{name}.nhpd";
fn = StringUtil.CleanFileName(fn);
var dest = Path.Combine(path, fn);
File.WriteAllBytes(dest, dp.Data);