Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
ygopro2
Commits
6d424f0e
Commit
6d424f0e
authored
Mar 02, 2019
by
Unicorn369
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix path
parent
a78608ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+7
-9
Assets/SibylSystem/SelectDeck/selectDeck.cs
Assets/SibylSystem/SelectDeck/selectDeck.cs
+1
-1
No files found.
Assets/SibylSystem/Program.cs
View file @
6d424f0e
...
...
@@ -274,6 +274,9 @@ public class Program : MonoBehaviour
public
static
float
verticleScale
=
5f
;
//YGOMobile Paths (https://github.com/Unicorn369/YGOPro2_Droid)
public
static
string
Android_Path
=
"/storage/emulated/0/ygopro2/"
;
void
initialize
()
{
#if UNITY_EDITOR || UNITY_STANDALONE_WIN //编译器、Windows
...
...
@@ -282,23 +285,18 @@ 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/";
//YGOPro2 Paths (https://github.com/Unicorn369/YGOPro2_Droid/tree/Test)
string
GamePaths
=
"/storage/emulated/0/ygopro2/"
;
if
(!
File
.
Exists
(
GamePaths
+
"updates/version1.0.txt"
))
if
(!
File
.
Exists
(
Android_Path
+
"updates/version1.0.txt"
))
{
string
filePath
=
Application
.
streamingAssetsPath
+
"/ygocore.zip"
;
var
www
=
new
WWW
(
filePath
);
while
(!
www
.
isDone
)
{
}
byte
[]
bytes
=
www
.
bytes
;
ExtractZipFile
(
bytes
,
GamePaths
);
ExtractZipFile
(
bytes
,
Android_Path
);
//File.Create(GamePaths + ".nomedia");
}
Environment
.
CurrentDirectory
=
GamePaths
;
System
.
IO
.
Directory
.
SetCurrentDirectory
(
GamePaths
);
Environment
.
CurrentDirectory
=
Android_Path
;
System
.
IO
.
Directory
.
SetCurrentDirectory
(
Android_Path
);
#elif UNITY_IPHONE //iPhone
string
GamePaths
=
Application
.
persistentDataPath
+
"/ygopro2/"
;
if
(!
File
.
Exists
(
GamePaths
+
"updates/version1.0.txt"
))
...
...
Assets/SibylSystem/SelectDeck/selectDeck.cs
View file @
6d424f0e
...
...
@@ -249,7 +249,7 @@ public class selectDeck : WindowServantSP
System
.
Diagnostics
.
Process
.
Start
(
"gedit"
,
path
);
#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/ygopro2/"
+
path
);
jo
.
Call
(
"openFile"
,
Program
.
Android_Path
+
path
);
//#elif UNITY_IPHONE //iPhone
#endif
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment