Commit 747dace3 authored by 247321453's avatar 247321453

fix

parent e25d7aff
http://hi.baidu.com/247321453
\ No newline at end of file
...@@ -22,7 +22,7 @@ public partial class DataEditForm : Form ...@@ -22,7 +22,7 @@ public partial class DataEditForm : Form
#region 成员变量 #region 成员变量
string GAMEPATH,PICPATH,LUAPTH; string GAMEPATH,PICPATH,LUAPTH;
readonly string GITURL="https://github.com/247321453/DataEcitorX"; readonly string GITURL="https://github.com/247321453/DataEcitorX";
readonly string VERURL="http://hi.baidu.com/247321453"; string VERURL="http://hi.baidu.com/247321453";
Card oldCard=new Card(0); Card oldCard=new Card(0);
Card srcCard=new Card(0); Card srcCard=new Card(0);
ImageForm imgform=new ImageForm(); ImageForm imgform=new ImageForm();
...@@ -98,6 +98,13 @@ void InitPath() ...@@ -98,6 +98,13 @@ void InitPath()
else else
MyMsg.Warning(string.Format("游戏目录不存在,请重新设置。\n{0}\n设置文件:\n{0}",lines[0],txt)); MyMsg.Warning(string.Format("游戏目录不存在,请重新设置。\n{0}\n设置文件:\n{0}",lines[0],txt));
} }
string urltxt=Path.Combine(datapath,"update.txt");
if(File.Exists(urltxt))
{
string[] lines=File.ReadAllLines(urltxt,Encoding.UTF8);
if(lines.Length>0)
VERURL=lines[0];
}
PICPATH=Path.Combine(GAMEPATH,"pics"); PICPATH=Path.Combine(GAMEPATH,"pics");
LUAPTH=Path.Combine(GAMEPATH,"script"); LUAPTH=Path.Combine(GAMEPATH,"script");
......
...@@ -97,6 +97,9 @@ ...@@ -97,6 +97,9 @@
<None Include="Data\cover.jpg"> <None Include="Data\cover.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>
<None Include="Data\update.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="Data\ygopro.txt"> <None Include="Data\ygopro.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>
......
...@@ -19,3 +19,8 @@ ...@@ -19,3 +19,8 @@
data\ygopro.txt data\ygopro.txt
注意:文本编码:UTF-8,最好是完整路径 注意:文本编码:UTF-8,最好是完整路径
★更新历史
1.2.0.0
添加检查新版本
修复setname
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