diff --git a/README.md b/README.md index 7914bef..07ce1ee 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,9 @@ Please see the included readme for detailed instructions. *TKGP* - Everything else # Changelog +### 1.2.2 +* Fix not being able to repack bnds with roots + ### 1.2.1 * Fix LUAINFO not working on files with 2 or fewer goals * Fix LUAGNL not working on some files diff --git a/Yabber/Formats/Binder.cs b/Yabber/Formats/Binder.cs index a400cc2..7c2c1ef 100644 --- a/Yabber/Formats/Binder.cs +++ b/Yabber/Formats/Binder.cs @@ -41,7 +41,7 @@ public static void WriteBinderFiles(IBinder bnd, XmlWriter xw, string targetDir) xw.WriteElementString("path", path); xw.WriteEndElement(); - path = $"{targetDir}\\{path}"; + path = $@"{targetDir}\{path}"; Directory.CreateDirectory(Path.GetDirectoryName(path)); File.WriteAllBytes(path, file.Bytes); } @@ -61,7 +61,7 @@ public static void ReadBinderFiles(IBinder bnd, XmlNode filesNode, string source if (Binder.HasName(bnd.Format)) name = root + path; - byte[] bytes = File.ReadAllBytes($@"{sourceDir}\{root}{path}"); + byte[] bytes = File.ReadAllBytes($@"{sourceDir}\{path}"); bnd.Files.Add(new BinderFile(flags, id, name, bytes)); } } diff --git a/Yabber/Program.cs b/Yabber/Program.cs index 7cb601a..5c57c45 100644 --- a/Yabber/Program.cs +++ b/Yabber/Program.cs @@ -9,6 +9,7 @@ class Program { static void Main(string[] args) { + args = new string[] { @"C:\Users\Joseph\Downloads\stayparam-parambnd-dcx-bak" }; if (args.Length == 0) { Assembly assembly = Assembly.GetExecutingAssembly(); @@ -47,7 +48,7 @@ static void Main(string[] args) pause = true; } } - catch (Exception ex) + catch (InvalidOperationException ex) { Console.WriteLine($"Unhandled exception: {ex}"); pause = true; diff --git a/Yabber/Properties/AssemblyInfo.cs b/Yabber/Properties/AssemblyInfo.cs index 307ed21..e4f148b 100644 --- a/Yabber/Properties/AssemblyInfo.cs +++ b/Yabber/Properties/AssemblyInfo.cs @@ -36,5 +36,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.2.1.0")] -[assembly: AssemblyFileVersion("1.2.1")] +[assembly: AssemblyVersion("1.2.2.0")] +[assembly: AssemblyFileVersion("1.2.2")] diff --git a/dist/readme.txt b/dist/readme.txt index 3685aca..03a1e44 100644 --- a/dist/readme.txt +++ b/dist/readme.txt @@ -1,5 +1,5 @@ ---| Yabber 1.2.1 +--| Yabber 1.2.2 --| By TKGP --| https://www.nexusmods.com/darksouls3/mods/305 --| https://github.com/JKAnderson/Yabber @@ -82,6 +82,9 @@ TKGP - Everything else --| Changelog +1.2.2 + Fix not being able to repack bnds with roots + 1.2.1 Fix LUAINFO not working on files with 2 or fewer goals Fix LUAGNL not working on some files