Commit b496a883 authored by keyongyu's avatar keyongyu

2.3.0.4

parent d42ec5d5
...@@ -141,6 +141,8 @@ public static bool DownLoad(string filename) ...@@ -141,6 +141,8 @@ public static bool DownLoad(string filename)
{ {
try try
{ {
if (File.Exists(filename))
File.Delete(filename);
HttpWebRequest Myrq = (HttpWebRequest)System.Net.HttpWebRequest.Create(URL); HttpWebRequest Myrq = (HttpWebRequest)System.Net.HttpWebRequest.Create(URL);
HttpWebResponse myrp = (HttpWebResponse)Myrq.GetResponse(); HttpWebResponse myrp = (HttpWebResponse)Myrq.GetResponse();
long totalBytes = myrp.ContentLength; long totalBytes = myrp.ContentLength;
......
...@@ -24,6 +24,8 @@ public static string AutoEnter(string str, int lineNum, string re) ...@@ -24,6 +24,8 @@ public static string AutoEnter(string str, int lineNum, string re)
else else
i += 1; i += 1;
sb.Append(c); sb.Append(c);
if (c == '\n' || c == '\r')
i = 0;
if (i >= lineNum) if (i >= lineNum)
{ {
sb.Append(re); sb.Append(re);
......
...@@ -143,6 +143,7 @@ void MenuHistoryItem_Click(object sender, EventArgs e) ...@@ -143,6 +143,7 @@ void MenuHistoryItem_Click(object sender, EventArgs e)
if (tsmi != null) if (tsmi != null)
{ {
string file = tsmi.Text; string file = tsmi.Text;
if(File.Exists(file))
mainForm.Open(file); mainForm.Open(file);
} }
} }
......
...@@ -425,7 +425,7 @@ string getMonster(Card c, string img, bool isPendulum) ...@@ -425,7 +425,7 @@ string getMonster(Card c, string img, bool isPendulum)
else//一般怪兽 else//一般怪兽
{ {
sb.AppendLine(" " + TAG_TEXT + ":"); sb.AppendLine(" " + TAG_TEXT + ":");
sb.AppendLine(" " + ReText(c.desc)); sb.AppendLine(" " + reItalic(ReText(c.desc)));
} }
sb.AppendLine(GetLine(TAG_ATK, (c.atk < 0) ? UNKNOWN_ATKDEF : c.atk.ToString())); sb.AppendLine(GetLine(TAG_ATK, (c.atk < 0) ? UNKNOWN_ATKDEF : c.atk.ToString()));
sb.AppendLine(GetLine(TAG_DEF, (c.def < 0) ? UNKNOWN_ATKDEF : c.def.ToString())); sb.AppendLine(GetLine(TAG_DEF, (c.def < 0) ? UNKNOWN_ATKDEF : c.def.ToString()));
......
...@@ -28,4 +28,4 @@ ...@@ -28,4 +28,4 @@
// //
// You can specify all the values or you can use the default the Revision and // You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below: // Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("2.3.0.3")] [assembly: AssemblyVersion("2.3.0.4")]
★更新历史 ★更新历史
2.3.0.4
MSE存档的文本处理,分行优化
2.3.0.3 2.3.0.3
为了适应ygopro1033.3,增加分行 为了适应ygopro1033.3,增加分行
配置config的autolength,控制每多少个字符,换行 配置config的autolength,控制每多少个字符,换行
......
[DataEditorX]2.3.0.3[DataEditorX] [DataEditorX]2.3.0.4[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL] [URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★运行环境(Environment) ★运行环境(Environment)
......
No preview for this file type
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
<!-- access these values via the property: <!-- access these values via the property:
System.Configuration.ConfigurationManager.AppSettings[key] System.Configuration.ConfigurationManager.AppSettings[key]
--> -->
<!-- auto enter length -->
<add key="autolength" value="32" />
<!-- MSE language data/mse_xxx.txt --> <!-- MSE language data/mse_xxx.txt -->
<add key="mse" value="Chinese-Simplified" /> <add key="mse" value="Chinese-Simplified" />
<!-- Language data/cardinfo_xxxx.txt data/language_xxx.txt --> <!-- Language data/cardinfo_xxxx.txt data/language_xxx.txt -->
......
★更新历史 ★更新历史
2.3.0.4
MSE存档的文本处理,分行优化
2.3.0.3 2.3.0.3
为了适应ygopro1033.3,增加分行 为了适应ygopro1033.3,增加分行
配置config的autolength,控制每多少个字符,换行 配置config的autolength,控制每多少个字符,换行
......
[DataEditorX]2.3.0.3[DataEditorX] [DataEditorX]2.3.0.4[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL] [URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★运行环境(Environment) ★运行环境(Environment)
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment