Commit 5afee127 authored by nanahira's avatar nanahira

improve update

parent 28de242a
...@@ -431,7 +431,7 @@ public class Program : MonoBehaviour ...@@ -431,7 +431,7 @@ public class Program : MonoBehaviour
} }
initializeALLservants(); initializeALLservants();
if(GameTextureManager.AutoPicDownload) if(Config.Get("autoPicDownload_", "1") != "0")
(new Thread(()=>{UpdateClient();})).Start(); (new Thread(()=>{UpdateClient();})).Start();
loadResources(); loadResources();
...@@ -520,6 +520,7 @@ public class Program : MonoBehaviour ...@@ -520,6 +520,7 @@ public class Program : MonoBehaviour
{ {
try try
{ {
PrintToChat(InterString.Get("开始更新卡片数据。"));
if(!Directory.Exists("cdb")) { if(!Directory.Exists("cdb")) {
Directory.CreateDirectory("cdb"); Directory.CreateDirectory("cdb");
} }
...@@ -556,7 +557,7 @@ public class Program : MonoBehaviour ...@@ -556,7 +557,7 @@ public class Program : MonoBehaviour
{ {
PrintToChat(InterString.Get("字段信息文件更新失败。")); PrintToChat(InterString.Get("字段信息文件更新失败。"));
} }
PrintToChat(InterString.Get("卡片数据更新完毕。")); PrintToChat(InterString.Get("卡片数据更新完毕,重启游戏生效。"));
} }
catch (Exception e) catch (Exception e)
{ {
......
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