Commit 47ecb621 authored by nanahira's avatar nanahira

localize

parent c0cfa20e
...@@ -275,7 +275,7 @@ public class Program : MonoBehaviour ...@@ -275,7 +275,7 @@ public class Program : MonoBehaviour
public static float verticleScale = 5f; public static float verticleScale = 5f;
//YGOPro2 Path (https://github.com/Unicorn369/YGOPro2_Droid/tree/Test) //Multi-language support //YGOPro2 Path (https://github.com/Unicorn369/YGOPro2_Droid/tree/Test) //Multi-language support
public static string ANDROID_GAME_PATH = "/storage/emulated/0/ygocore/";//YGOMobile Path public static string ANDROID_GAME_PATH = "/storage/emulated/0/ygocore-koishi/";//YGOMobile Path
#if UNITY_EDITOR || UNITY_STANDALONE_WIN //编译器、Windows #if UNITY_EDITOR || UNITY_STANDALONE_WIN //编译器、Windows
public static bool ANDROID_API_M = true; public static bool ANDROID_API_M = true;
...@@ -483,7 +483,7 @@ public class Program : MonoBehaviour ...@@ -483,7 +483,7 @@ public class Program : MonoBehaviour
{ {
try try
{ {
WWW w = new WWW("https://api.github.com/repos/szefo09/updateYGOPro2/contents/"); WWW w = new WWW("https://api.github.com/repos/purerosefallen/ygopro-database-raw/contents/");
while (!w.isDone) while (!w.isDone)
{ {
if (Application.internetReachability == NetworkReachability.NotReachable || !string.IsNullOrEmpty(w.error)) if (Application.internetReachability == NetworkReachability.NotReachable || !string.IsNullOrEmpty(w.error))
......
...@@ -817,15 +817,15 @@ public class GameTextureManager ...@@ -817,15 +817,15 @@ public class GameTextureManager
if (!File.Exists(path) && pic.code != 0 && AutoPicDownload) if (!File.Exists(path) && pic.code != 0 && AutoPicDownload)
{ {
//YGOMobile (177x254) //YGOMobile (177x254)
df.Download("http://api.ygo2019.xyz/ygopro/pics/" + pic.code.ToString() + ".jpg", "expansions/pics/" + pic.code.ToString() + ".jpg"); df.Download("http://koishi.222diy.gdn/smallpics/" + pic.code.ToString() + ".jpg", "expansions/pics/" + pic.code.ToString() + ".jpg");
path = "expansions/pics/" + pic.code.ToString() + ".jpg"; path = "expansions/pics/" + pic.code.ToString() + ".jpg";
} }
if (!File.Exists(path) && pic.code != 0 && AutoPicDownload) /*if (!File.Exists(path) && pic.code != 0 && AutoPicDownload)
{ {
//先行卡 (177x254) //先行卡 (177x254)
df.Download("http://download.ygo2019.xyz/ygopro2-data/expansions/pics/" + pic.code.ToString() + ".jpg", "picture/cardIn8thEdition/" + pic.code.ToString() + ".jpg"); df.Download("http://download.ygo2019.xyz/ygopro2-data/expansions/pics/" + pic.code.ToString() + ".jpg", "picture/cardIn8thEdition/" + pic.code.ToString() + ".jpg");
path = "picture/cardIn8thEdition/" + pic.code.ToString() + ".jpg"; path = "picture/cardIn8thEdition/" + pic.code.ToString() + ".jpg";
} }*/
if (!File.Exists(path)) if (!File.Exists(path))
{ {
if (pic.code > 0) if (pic.code > 0)
...@@ -1035,4 +1035,3 @@ public class GameTextureManager ...@@ -1035,4 +1035,3 @@ public class GameTextureManager
main.Start(); main.Start();
} }
} }
...@@ -22,14 +22,14 @@ namespace YGOSharp ...@@ -22,14 +22,14 @@ namespace YGOSharp
nullString += "欢迎使用:\r\nYGOPro2 For Android"; nullString += "欢迎使用:\r\nYGOPro2 For Android";
nullString += "\r\n\r\n"; nullString += "\r\n\r\n";
nullString += "源码:"; nullString += "源码:";
nullString += "\r\n「Android」\r\n[url=https://github.com/Unicorn369/YGOPro2_Droid][u]https://github.com/Unicorn369/YGOPro2_Droid[/u][/url]"; nullString += "\r\n「Android」\r\n[url=https://github.com/purerosefallen/ygopro2][u]https://github.com/purerosefallen/ygopro2[/u][/url]";
//nullString += "\r\nWindows:[url=https://github.com/lllyasviel/YGOProUnity_V2][u]https://github.com/lllyasviel/YGOProUnity_V2[/u][/url]"; //nullString += "\r\nWindows:[url=https://github.com/lllyasviel/YGOProUnity_V2][u]https://github.com/lllyasviel/YGOProUnity_V2[/u][/url]";
nullString += "\r\n\r\n「Windows」\r\n[url=https://github.com/mercury233/ygopro2][u]https://github.com/mercury233/ygopro2[/u][/url]"; //nullString += "\r\n\r\n「Windows」\r\n[url=https://github.com/mercury233/ygopro2][u]https://github.com/mercury233/ygopro2[/u][/url]";
nullString += "\r\n\r\n\r\n"; nullString += "\r\n\r\n\r\n";
nullString += "欢迎加入QQ群:"; //nullString += "欢迎加入QQ群:";
nullString += "\r\n①:[url=https://jq.qq.com/?_wv=1027&k=5nq6xJe][u]649612818[/u][/url]"; //nullString += "\r\n①:[url=https://jq.qq.com/?_wv=1027&k=5nq6xJe][u]649612818[/u][/url]";
nullString += "\r\n③:[url=https://jq.qq.com/?_wv=1027&k=50MZVQA][u]831010207[/u][/url]"; //nullString += "\r\n③:[url=https://jq.qq.com/?_wv=1027&k=50MZVQA][u]831010207[/u][/url]";
nullString += "\r\n②:[url=https://jq.qq.com/?_wv=1027&k=5idyod3][u]559276772[/u][/url]"; //nullString += "\r\n②:[url=https://jq.qq.com/?_wv=1027&k=5idyod3][u]559276772[/u][/url]";
using (SqliteConnection connection = new SqliteConnection("Data Source=" + databaseFullPath)) using (SqliteConnection connection = new SqliteConnection("Data Source=" + databaseFullPath))
{ {
connection.Open(); connection.Open();
...@@ -624,4 +624,4 @@ namespace YGOSharp ...@@ -624,4 +624,4 @@ namespace YGOSharp
} }
} }
} }
\ No newline at end of file
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