Commit 4d4fadae authored by 無名の凝泪's avatar 無名の凝泪

fix

parent ba90f97d
......@@ -393,16 +393,15 @@ public class Program : MonoBehaviour
loadResources();
#if UNITY_ANDROID //Android Java Test
AndroidJavaObject jo = new AndroidJavaObject("cn.unicorn369.library.UnityAndroid");
AndroidJavaObject jo = new AndroidJavaObject("cn.unicorn369.library.API");
if(!File.Exists("updates/image_version1.0.txt"))//用于检查更新
{
if(File.Exists("pics.zip"))//YGOMobile内置的卡图包
{
jo.Call("doExtractZipFile", "pics.zip", "./");
File.Create("updates/image_version1.0.txt");
} else {
//jo.Call("doDownloadFile", "https://github.com/Unicorn369/YGOPro2_Data/releases/download/0.1/ygopro2-data.zip", "./");//下载不解压
jo.Call("doDownloadZipFile", "http://download.ygopro.win/ygopro2/Android-Image-Data.zip");//下载并解压,完成后删除
//} else {
// jo.Call("doDownloadZipFile", "http://download.ygopro.win/ygopro2/Android-Image-Data.zip");//下载并解压,完成后删除
}
}
#endif
......
......@@ -247,9 +247,9 @@ public class selectDeck : WindowServantSP
System.Diagnostics.Process.Start("open", "-e " + path);
#elif UNITY_STANDALONE_LINUX //Linux
System.Diagnostics.Process.Start("gedit", path);
#elif UNITY_ANDROID //Android (Java)
AndroidJavaObject jo = new AndroidJavaObject("cn.unicorn369.library.UnityAndroid");
jo.Call("showToast", "暂不支持!以后再做唤醒编辑器打开");
#elif UNITY_ANDROID //Android (https://github.com/Unicorn369/Unity_Android_Library)
AndroidJavaObject jo = new AndroidJavaObject("cn.unicorn369.library.API");
jo.Call("openFile", "/storage/emulated/0/ygocore/" + path);
//#elif UNITY_IPHONE //iPhone
#endif
}
......
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