From 3d09c28a2eceb8608948afba5c1156076e2fd6fe Mon Sep 17 00:00:00 2001 From: Dan Sadler Date: Fri, 25 Dec 2020 19:45:44 +0600 Subject: [PATCH 1/2] Support for locales with non-dot decimal separators --- kanimal-cli/Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kanimal-cli/Program.cs b/kanimal-cli/Program.cs index 80953fa..3e5a3c5 100644 --- a/kanimal-cli/Program.cs +++ b/kanimal-cli/Program.cs @@ -146,6 +146,10 @@ private static void Convert(string inputFormat, string outputFormat, List(args) From 5ee3d3c882408666e70c04bedf55f884532a1fac Mon Sep 17 00:00:00 2001 From: Dan Sadler Date: Fri, 25 Dec 2020 19:47:27 +0600 Subject: [PATCH 2/2] Bugfix: output symbol count can differ from original symbol count --- kanimal/Writer/KanimWriter.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kanimal/Writer/KanimWriter.cs b/kanimal/Writer/KanimWriter.cs index 3dabfe2..1c4dd54 100644 --- a/kanimal/Writer/KanimWriter.cs +++ b/kanimal/Writer/KanimWriter.cs @@ -47,13 +47,14 @@ public void WriteBuild(Stream output) writer.Write("BILD".ToCharArray()); writer.Write(10); // build version Logger.Debug("version=10"); - writer.Write(BuildData.SymbolCount); - Logger.Debug($"symbols={BuildData.SymbolCount}"); + writer.Write(BuildData.Symbols.Count); + Logger.Debug($"symbols={BuildData.Symbols.Count}"); writer.Write(BuildData.FrameCount); Logger.Debug($"frames={BuildData.FrameCount}"); writer.WritePString(BuildData.Name); Logger.Debug($"name={BuildData.Name}"); - for (var i = 0; i < BuildData.SymbolCount; i++) + + for (var i = 0; i < BuildData.Symbols.Count; i++) { var symbol = BuildData.Symbols[i]; Logger.Debug(