Skip to content

Commit

Permalink
remove forced .raw extension when exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
foglio1024 committed Sep 24, 2020
1 parent 99123e5 commit 7bf05a2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions GPK_RePack/Forms/GUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ private void btnExport_Click(object sender, EventArgs e)
return;
}

var path = MiscFuncs.GenerateSaveDialog(selectedExport.ObjectName, ".raw");
var path = MiscFuncs.GenerateSaveDialog(selectedExport.ObjectName, "");
if (path == "") return;
DataTools.WriteExportDataFile(path, selectedExport);
}
Expand All @@ -761,7 +761,7 @@ private void btnExport_Click(object sender, EventArgs e)
{
if (exp.Data != null)
{
DataTools.WriteExportDataFile(String.Format("{0}\\{1}.raw", dialog.SelectedPath, exp.ObjectName), exp);
DataTools.WriteExportDataFile(String.Format("{0}\\{1}", dialog.SelectedPath, exp.ObjectName), exp);
logger.Trace("save for " + exp.UID);
}
}
Expand All @@ -781,7 +781,7 @@ private void btnExport_Click(object sender, EventArgs e)
{
if (exp.Data != null)
{
DataTools.WriteExportDataFile(String.Format("{0}\\{1}\\{2}.raw", dialog.SelectedPath, exp.ClassName, exp.ObjectName), exp);
DataTools.WriteExportDataFile(String.Format("{0}\\{1}\\{2}", dialog.SelectedPath, exp.ClassName, exp.ObjectName), exp);
logger.Trace("save for " + exp.UID);
}
}
Expand Down Expand Up @@ -2032,7 +2032,7 @@ private void BigBytePropExport(GpkArrayProperty arrayProp)
byte[] data = new byte[arrayProp.value.Length - 4];
Array.Copy(arrayProp.value, 4, data, 0, arrayProp.value.Length - 4); //remove count bytes

String path = MiscFuncs.GenerateSaveDialog(arrayProp.name, ".raw");
String path = MiscFuncs.GenerateSaveDialog(arrayProp.name, "");
if (path == "") return;

DataTools.WriteExportDataFile(path, data);
Expand Down Expand Up @@ -2249,7 +2249,7 @@ private void saveSingleGpkPackage()

#endregion


}
}

Expand Down

0 comments on commit 7bf05a2

Please sign in to comment.