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
List
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
mercury233
ygopro2
Commits
ca0d2529
Commit
ca0d2529
authored
Feb 11, 2019
by
Unicorn369
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动下载并解压数据包(Test)
parent
ff3fa082
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
Assets/Plugins/Android/Mylibrary-Test.aar
Assets/Plugins/Android/Mylibrary-Test.aar
+0
-0
Assets/Plugins/Android/Mylibrary-Test.aar.meta
Assets/Plugins/Android/Mylibrary-Test.aar.meta
+2
-2
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+4
-4
Assets/SibylSystem/ResourceManagers/GameTextureManager.cs
Assets/SibylSystem/ResourceManagers/GameTextureManager.cs
+3
-3
No files found.
Assets/Plugins/Android/Mylibrary-Test.aar
View file @
ca0d2529
No preview for this file type
Assets/Plugins/Android/Mylibrary-Test.meta
→
Assets/Plugins/Android/Mylibrary-Test.
aar.
meta
View file @
ca0d2529
fileFormatVersion: 2
guid:
3e7316faecb66ab489c7d71f8991b1d5
timeCreated: 1549
612020
guid:
dd03a7ceb4d913346bec9c982c0174f7
timeCreated: 1549
876658
licenseType: Free
PluginImporter:
serializedVersion: 2
...
...
Assets/SibylSystem/Program.cs
View file @
ca0d2529
...
...
@@ -393,16 +393,16 @@ public class Program : MonoBehaviour
loadResources
();
#if UNITY_ANDROID //Android Java Test
AndroidJavaObject
jo
=
new
AndroidJavaObject
(
"cn.unicorn369.library.UnityAndroid"
);
if
(!
File
.
Exists
(
"updates/image_version1.0.txt"
))
//用于检查更新
{
if
(
File
.
Exists
(
"pics.zip"
))
//YGOMobile内置的卡图包
{
AndroidJavaObject
jo
=
new
AndroidJavaObject
(
"cn.unicorn369.library.UnityAndroid"
);
jo
.
Call
(
"doZipExtractor"
,
"pics.zip"
,
"./"
);
jo
.
Call
(
"doExtractZipFile"
,
"pics.zip"
,
"./"
);
File
.
Create
(
"updates/image_version1.0.txt"
);
}
else
{
AndroidJavaObject
jo
=
new
AndroidJavaObject
(
"cn.unicorn369.library.UnityAndroid"
);
jo
.
Call
(
"doDown
Load"
,
"http://192.168.1.222:3690/pics.zip"
,
"./"
);
//jo.Call("doDownloadFile", "https://github.com/Unicorn369/YGOPro2_Data/releases/download/0.1/ygopro2-data.zip", "./");//下载不解压
jo
.
Call
(
"doDown
loadZipFile"
,
"http://download.ygopro.win/ygopro2/Android-Image-Data.zip"
);
//下载并解压,完成后删除
}
}
#endif
...
...
Assets/SibylSystem/ResourceManagers/GameTextureManager.cs
View file @
ca0d2529
...
...
@@ -812,20 +812,20 @@ public class GameTextureManager
if
(!
File
.
Exists
(
path
)
&&
pic
.
code
!=
0
)
{
//YGOMobile (177x254)
df
.
Download
(
"http://
android.ygopro.win/YGOMobile
/pics/"
+
pic
.
code
.
ToString
()
+
".jpg"
,
"expansions/pics/"
+
pic
.
code
.
ToString
()
+
".jpg"
);
df
.
Download
(
"http://
download.ygopro.win/ygopro
/pics/"
+
pic
.
code
.
ToString
()
+
".jpg"
,
"expansions/pics/"
+
pic
.
code
.
ToString
()
+
".jpg"
);
path
=
"expansions/pics/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
}
#
endif
if
(!
File
.
Exists
(
path
)
&&
pic
.
code
!=
0
)
{
//YGOPro2 (421x614)
df
.
Download
(
"http://
update.ygopro.win/ygopro2-data
/picture/card/"
+
pic
.
code
.
ToString
()
+
".jpg"
,
"picture/card/"
+
pic
.
code
.
ToString
()
+
".jpg"
);
df
.
Download
(
"http://
download.ygopro.win/ygopro2
/picture/card/"
+
pic
.
code
.
ToString
()
+
".jpg"
,
"picture/card/"
+
pic
.
code
.
ToString
()
+
".jpg"
);
path
=
"picture/card/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
}
if
(!
File
.
Exists
(
path
)
&&
pic
.
code
!=
0
)
{
//YGOPro2 pre(336x490)
df
.
Download
(
"http://
update.ygopro.win/ygopro2-data
/expansions/pics/"
+
pic
.
code
.
ToString
()
+
".jpg"
,
"picture/card/"
+
pic
.
code
.
ToString
()
+
".jpg"
);
df
.
Download
(
"http://
download.ygopro.win/ygopro2
/expansions/pics/"
+
pic
.
code
.
ToString
()
+
".jpg"
,
"picture/card/"
+
pic
.
code
.
ToString
()
+
".jpg"
);
path
=
"picture/card/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
}
if
(!
File
.
Exists
(
path
))
...
...
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