Commit b670a0e5 authored by nanahira's avatar nanahira

test download cdb

parent 424b6b93
...@@ -346,7 +346,7 @@ public class Program : MonoBehaviour ...@@ -346,7 +346,7 @@ public class Program : MonoBehaviour
}); });
go(300, () => go(300, () =>
{ {
//UpdateClient(); UpdateClient();
InterString.initialize("config/translation.conf"); InterString.initialize("config/translation.conf");
GameTextureManager.initialize(); GameTextureManager.initialize();
Config.initialize("config/config.conf"); Config.initialize("config/config.conf");
...@@ -480,6 +480,12 @@ public class Program : MonoBehaviour ...@@ -480,6 +480,12 @@ public class Program : MonoBehaviour
{ {
try try
{ {
if(File.Exists("cards.cdb"))
File.Delete("cards.cdb");
if(File.Exists("lflist.conf"))
File.Delete("lflist.conf");
if(File.Exists("strings.conf"))
File.Delete("strings.conf");
HttpDldFile httpDldFile = new HttpDldFile(); HttpDldFile httpDldFile = new HttpDldFile();
httpDldFile.Download("http://koishi.222diy.gdn/ygopro/cards.cdb", "cards.cdb"); httpDldFile.Download("http://koishi.222diy.gdn/ygopro/cards.cdb", "cards.cdb");
httpDldFile.Download("http://koishi.222diy.gdn/ygopro/lflist.conf", "lflist.conf"); httpDldFile.Download("http://koishi.222diy.gdn/ygopro/lflist.conf", "lflist.conf");
......
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