Commit 29cdb05f authored by Unicorn's avatar Unicorn

fix

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