diff --git a/Program.cs b/Program.cs index 5d1e656..b27afa4 100644 --- a/Program.cs +++ b/Program.cs @@ -240,10 +240,13 @@ public bool IsAllQoute(string text) if (text != "") { text = YMLTools.RemoveSpace(text); - string first = text.Substring(0, 1); - string end = text.Substring(text.Length - 1); - if (first == "$" && end == "$") { return true; } - if (first == "[" && end == "]") { return true; } + if (text.Length > 0) + { + string first = text.Substring(0, 1); + string end = text.Substring(text.Length - 1); + if (first == "$" && end == "$") { return true; } + if (first == "[" && end == "]") { return true; } + } //if (first == "§" && text.Substring(text.Length - 2) == "§!") //{ diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 167e34f..955d369 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 // 方法是按如下所示使用“*”: : // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.7.2.0")] -[assembly: AssemblyFileVersion("1.7.2.0")] +[assembly: AssemblyVersion("1.7.3.0")] +[assembly: AssemblyFileVersion("1.7.3.0")] diff --git a/release/HOI4.bat b/release/HOI4.bat new file mode 100644 index 0000000..0f1112e --- /dev/null +++ b/release/HOI4.bat @@ -0,0 +1,5 @@ +rd eng /s /q +rd chn /s /q +mklink /j eng "old\zhoi-1.3.3" +md chn +mklink /j chn\english "E:\HOI4_mod\_Inkitmod\chnLocal\localisation" diff --git a/release/pdx-ymltranslator.exe b/release/pdx-ymltranslator.exe index 7f3e740..8ecb69c 100644 Binary files a/release/pdx-ymltranslator.exe and b/release/pdx-ymltranslator.exe differ diff --git a/release/stellaris.bat b/release/stellaris.bat index 528dad9..9d6e844 100644 --- a/release/stellaris.bat +++ b/release/stellaris.bat @@ -1,4 +1,5 @@ rd eng /s /q rd chn /s /q mklink /j eng "old\ast-1.61" -mklink /j chn "D:\git\stellaris_cn\cn\localisation\" +md chn +mklink /j chn\english "E:\stellaris_cn\cn\localisation\english" diff --git a/release/stellarisonlyeng.bat b/release/stellarisonlyeng.bat deleted file mode 100644 index ec6e969..0000000 --- a/release/stellarisonlyeng.bat +++ /dev/null @@ -1,4 +0,0 @@ -rd chn /s /q -md chn -cd chn -mklink /j english "D:\git\stellaris_cn\cn\localisation\english" \ No newline at end of file