From c62793e197846b3db72c6fe27487a8ce915c3e83 Mon Sep 17 00:00:00 2001 From: Atvaark Date: Sat, 11 Jul 2015 13:49:31 +0200 Subject: [PATCH] Enabled language option for packing files in SubpTool --- FfntTool/Properties/AssemblyInfo.cs | 4 ++-- LangTool/Properties/AssemblyInfo.cs | 4 ++-- SubpTool/Program.cs | 6 ++---- SubpTool/Properties/AssemblyInfo.cs | 4 ++-- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/FfntTool/Properties/AssemblyInfo.cs b/FfntTool/Properties/AssemblyInfo.cs index 90cac5f..4dadb98 100644 --- a/FfntTool/Properties/AssemblyInfo.cs +++ b/FfntTool/Properties/AssemblyInfo.cs @@ -11,5 +11,5 @@ [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: Guid("d9af2da5-85dd-45b2-8727-34be880d1558")] -[assembly: AssemblyVersion("0.1.2.0")] -[assembly: AssemblyFileVersion("0.1.2.0")] +[assembly: AssemblyVersion("0.1.3.0")] +[assembly: AssemblyFileVersion("0.1.3.0")] diff --git a/LangTool/Properties/AssemblyInfo.cs b/LangTool/Properties/AssemblyInfo.cs index cbab408..1a687e1 100644 --- a/LangTool/Properties/AssemblyInfo.cs +++ b/LangTool/Properties/AssemblyInfo.cs @@ -11,5 +11,5 @@ [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: Guid("b2857b4d-a9d2-4c25-84b8-c9f9a3612852")] -[assembly: AssemblyVersion("0.1.2.0")] -[assembly: AssemblyFileVersion("0.1.2.0")] +[assembly: AssemblyVersion("0.1.3.0")] +[assembly: AssemblyFileVersion("0.1.3.0")] diff --git a/SubpTool/Program.cs b/SubpTool/Program.cs index 957f99a..4a5805d 100644 --- a/SubpTool/Program.cs +++ b/SubpTool/Program.cs @@ -24,7 +24,7 @@ public static void Main(string[] args) } if (path.EndsWith(".xml")) { - PackSubp(path); + PackSubp(path, encoding); return; } } @@ -82,7 +82,7 @@ private static void UnpackSubp(string path, Encoding encoding) } } - private static void PackSubp(string path) + private static void PackSubp(string path, Encoding encoding) { string fileDirectory = Path.GetDirectoryName(path); string fileName = Path.GetFileNameWithoutExtension(path); @@ -94,8 +94,6 @@ private static void PackSubp(string path) { XmlSerializer serializer = new XmlSerializer(typeof (SubpFile)); SubpFile subpFile = serializer.Deserialize(inputStream) as SubpFile; - // TODO: Get the encoding from the serializer? Or just save it as an attribute in the subpfile xml. - Encoding encoding = Encoding.Default; if (subpFile != null) { subpFile.Write(outputStream, encoding); diff --git a/SubpTool/Properties/AssemblyInfo.cs b/SubpTool/Properties/AssemblyInfo.cs index 5cf4467..b5c033c 100644 --- a/SubpTool/Properties/AssemblyInfo.cs +++ b/SubpTool/Properties/AssemblyInfo.cs @@ -11,5 +11,5 @@ [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [assembly: Guid("2ab72241-1321-4bae-ba53-b12120bfc344")] -[assembly: AssemblyVersion("0.1.2.0")] -[assembly: AssemblyFileVersion("0.1.2.0")] +[assembly: AssemblyVersion("0.1.3.0")] +[assembly: AssemblyFileVersion("0.1.3.0")]