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
3ecb5415
Commit
3ecb5415
authored
Apr 03, 2019
by
Unicorn369
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判断部分机型
parent
05fc925a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
Assets/Plugins/Android/library-release.aar
Assets/Plugins/Android/library-release.aar
+0
-0
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+5
-1
ProjectSettings/ProjectSettings.asset
ProjectSettings/ProjectSettings.asset
+1
-1
No files found.
Assets/Plugins/Android/library-release.aar
View file @
3ecb5415
No preview for this file type
Assets/SibylSystem/Program.cs
View file @
3ecb5415
...
...
@@ -295,7 +295,7 @@ public class Program : MonoBehaviour
#elif UNITY_ANDROID //Android
/**
* public String GamePath(String path) {
* GAME_DIR = Environment.getExternalStorageDirectory().toString()
;
+ path;
* GAME_DIR = Environment.getExternalStorageDirectory().toString() + path;
* return GAME_DIR;
* }
*/
...
...
@@ -428,6 +428,9 @@ public class Program : MonoBehaviour
if
(
File
.
Exists
(
"pics.zip"
))
{
jo
.
Call
(
"doExtractZipFile"
,
"pics.zip"
,
ANDROID_GAME_PATH
);
File
.
Copy
(
"updates/version2.0.txt"
,
"updates/image_version1.2.txt"
,
true
);
}
else
if
(
File
.
Exists
(
ANDROID_GAME_PATH
+
"../ygocore/pics.zip"
))
{
jo
.
Call
(
"doExtractZipFile"
,
ANDROID_GAME_PATH
+
"../ygocore/pics.zip"
,
ANDROID_GAME_PATH
);
File
.
Copy
(
"updates/version2.0.txt"
,
"updates/image_version1.2.txt"
,
true
);
}
else
{
jo
.
Call
(
"doDownloadZipFile"
,
"https://github.com/Unicorn369/pro2_android_closeup/releases/download/1.0/pics.zip"
);
}
...
...
@@ -436,6 +439,7 @@ public class Program : MonoBehaviour
/**
* 使用Termux编译生成的:libgdiplus.so (https://github.com/Unicorn369/libgdiplus-Android)
* 经测试,只有Android 6.0以上才能正常使用。为了让Android 6.0以下的也能凑合使用立绘效果,需做判断
* 部分6.0机型可能无法正常使用,如需支持需要额外判断型号:华为、OPPO、VIVO、乐视等机型
*
* public boolean APIVersion() {
* if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
...
...
ProjectSettings/ProjectSettings.asset
View file @
3ecb5415
...
...
@@ -148,7 +148,7 @@ PlayerSettings:
tvOS
:
cn.ygopro2.ygopro2android
buildNumber
:
iOS
:
AndroidBundleVersionCode
:
4
AndroidBundleVersionCode
:
5
AndroidMinSdkVersion
:
16
AndroidTargetSdkVersion
:
0
AndroidPreferredInstallLocation
:
0
...
...
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