From 815c9808d34d857403a0daf373a2538e2d20317c Mon Sep 17 00:00:00 2001 From: inkitter Date: Sun, 14 May 2017 14:15:53 +0900 Subject: [PATCH] 1.73 fix --- Program.cs | 11 +++++++---- Properties/AssemblyInfo.cs | 4 ++-- release/HOI4.bat | 5 +++++ release/pdx-ymltranslator.exe | Bin 50176 -> 50176 bytes release/stellaris.bat | 3 ++- release/stellarisonlyeng.bat | 4 ---- 6 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 release/HOI4.bat delete mode 100644 release/stellarisonlyeng.bat 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 7f3e7409804dd05dfd41de0d393fc3368bf13960..8ecb69cc2d149c4c712014d07a1407eaef8d1671 100644 GIT binary patch delta 1087 zcmY+@O-K}B90u^`-Jy4P#oX~@*QMOm71RyH3^hOMkWr!#&CIk{41SJX@s)J-(9r9p-P=^8!+Mx(ZA`b~2dT0Cx+Z<;0$MfIkof+Qg9g=#7 zq}xN%`q#w3h>Mj3W)!v&WX#Ww1pAoZ<6VGpl!~(n+mKxkBpe4Mp@RTFq?zj*g|$puE6R=cuPJ)%Am&|@IER>OLzYUj zD&!zFm}Q}4(qWs5^T;4o*<_(?(wjIHO(-BO#>qm(r1y3e7f?p}XqSa5{lqShie}W3 z20XG*BPrRH$}ggclf~raH)SqUDsRC6Dc$51ikxi47-d&YDq3-;+Q0R@ zeI{9OibA_v#U)JtD|O34ku`02Oj)OU5^Z=+>UZ0P!la{C6_>FZJiRitIX^hC+zu8uKHQ)RmaW`|yNx zH&#JEzLCB`6w1izs${ijNVMYu`k9^e@dSWT7Eb>`8Y;N8Bsk#K|{qsOHNe3;5~yO z%Y4!>pTGk{gGS8+W(@_LbIu}Z0%1cdY}L&%ffTK-VrLAKw9eDTS@QlgZFB6y@PWy~ z-kE1Bb4}X9Sc#eCXtq1c32{mE3G4T?SO1+7@Hm)Pv(NryTFk@6SgQmxmW-JSh1}JZF8dHFmZTP8H>sDxtY+28EFmc~O;;_utfHA| zWy_*1Mm_WpB;m^t36k2~2MG&;dI&0Cr4W0L{yYAIZ60R$@tyh3Im4Om0ZaFQ<<5ZR zhjfL9JYq-qu_l%xLWIPgNRJ5la^_%O`{=G95&k+L<1k<$?E>U>!>3ek^)yiI1X3-n zrxdjKj{%NN0gHc-MySFVE2$R7N@-DgXi