Commit 29cdb05f authored by Unicorn's avatar Unicorn

fix

parent 81cca36a
......@@ -49,7 +49,9 @@ pack/
picture/
replay/
sound/
texture/
textures/
updates/
cards.cdb
lflist.conf
strings.conf
......
......@@ -130,7 +130,7 @@ public class GameField : OCGobject
public void loadOldField()
{
if (File.Exists("texture/duel/field"))
if (File.Exists("texture/duel/field.png"))
{
Texture2D textureField = UIHelper.getTexture2D("texture/duel/field.png");
Texture2D[] textureFieldSliced = UIHelper.sliceField(textureField);
......
......@@ -282,14 +282,14 @@ public class Program : MonoBehaviour
#elif UNITY_ANDROID //Android
Screen.sleepTimeout = SleepTimeout.NeverSleep;
//YGOMobile Paths (https://github.com/Unicorn369/YGOPro2_Droid)
//string GamePaths = "/storage/emulated/0/ygocore";
//string GamePaths = "/storage/emulated/0/ygocore/";
//YGOPro2 Paths (https://github.com/Unicorn369/YGOPro2_Droid/tree/Test)
string GamePaths = "/storage/emulated/0/ygopro2/";
if(!File.Exists(GamePaths + "updates/version1.0.txt"))
{
string filePath = Application.streamingAssetsPath + "ygocore.zip";
string filePath = Application.streamingAssetsPath + "/ygocore.zip";
var www = new WWW(filePath);
while (!www.isDone) { }
byte[] bytes = www.bytes;
......@@ -353,10 +353,10 @@ public class Program : MonoBehaviour
}
if (Directory.Exists("expansions"))
//if (Directory.Exists("expansions" + AppLanguage.LanguageDir()))
//if (Directory.Exists("expansions" + AppLanguage.LanguageDir()))//System Language
{
fileInfos = (new DirectoryInfo("expansions")).GetFiles().OrderByDescending(x => x.Name).ToArray();
//fileInfos = (new DirectoryInfo("expansions" + AppLanguage.LanguageDir())).GetFiles().OrderByDescending(x => x.Name).ToArray();
//fileInfos = (new DirectoryInfo("expansions" + AppLanguage.LanguageDir())).GetFiles().OrderByDescending(x => x.Name).ToArray();//System Language
for (int i = 0; i < fileInfos.Length; i++)
{
if (fileInfos[i].Name.Length > 4)
......
......@@ -123,7 +123,7 @@ PlayerSettings:
16:10: 1
16:9: 1
Others: 1
bundleVersion: 1.034.7
bundleVersion: 1.034.8
preloadedAssets: []
metroInputSource: 0
m_HolographicPauseOnTrackingLoss: 1
......
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