diff --git a/BinderTool.Core/Properties/AssemblyInfo.cs b/BinderTool.Core/Properties/AssemblyInfo.cs index d2dc0d3..6bef4d4 100644 --- a/BinderTool.Core/Properties/AssemblyInfo.cs +++ b/BinderTool.Core/Properties/AssemblyInfo.cs @@ -11,5 +11,5 @@ [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: Guid("615e60b8-3eb0-4f54-ad9b-4fa1a9fe0df0")] -[assembly: AssemblyVersion("0.1.0.0")] -[assembly: AssemblyFileVersion("0.1.0.0")] +[assembly: AssemblyVersion("0.1.1.0")] +[assembly: AssemblyFileVersion("0.1.1.0")] diff --git a/BinderTool/Program.cs b/BinderTool/Program.cs index 1862886..2a6cacd 100644 --- a/BinderTool/Program.cs +++ b/BinderTool/Program.cs @@ -310,15 +310,14 @@ private static void UnpackDcxFile(string dcxPath, string outputPath) private static void UnpackBdf4File(string bdfPath, string outputPath) { var bdfDirectory = Path.GetDirectoryName(bdfPath); - var fileNameWithoutExtension = Path.GetFileNameWithoutExtension(bdfPath); // TODO: Add a command line option to specify the bhf file. (Since bhf4 and bdf4 have different hashes) - var bhf4FilePath = Path.Combine(bdfDirectory, fileNameWithoutExtension + ".bhd"); + var bhf4FilePath = bdfPath.Substring(0, bdfPath.Length - 3) + "bhd"; if (File.Exists(bhf4FilePath) == false) { // HACK: Adding 132 to a hash of a text that ends with XXX.bdt will give you the hash of XXX.bhd. - string[] split = fileNameWithoutExtension.Split('_'); + string[] split = Path.GetFileNameWithoutExtension(bdfPath).Split('_'); uint hash; if (uint.TryParse(split[0], out hash)) { diff --git a/BinderTool/Properties/AssemblyInfo.cs b/BinderTool/Properties/AssemblyInfo.cs index 6389e00..c37cb5b 100644 --- a/BinderTool/Properties/AssemblyInfo.cs +++ b/BinderTool/Properties/AssemblyInfo.cs @@ -11,5 +11,5 @@ [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: Guid("5d388695-6078-4404-8f5a-0bb1a94df97b")] -[assembly: AssemblyVersion("0.1.0.0")] -[assembly: AssemblyFileVersion("0.1.0.0")] +[assembly: AssemblyVersion("0.1.1.0")] +[assembly: AssemblyFileVersion("0.1.1.0")]