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
Xu Chenxi
ygopro2
Commits
96c8ecb7
Commit
96c8ecb7
authored
Apr 27, 2019
by
Unicorn369
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
bad48231
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
77 deletions
+9
-77
Assets/Plugins/Android/library-release.aar
Assets/Plugins/Android/library-release.aar
+0
-0
Assets/Plugins/Android/libs/armeabi-v7a/libX11.so
Assets/Plugins/Android/libs/armeabi-v7a/libX11.so
+0
-0
Assets/Plugins/Android/libs/armeabi-v7a/libX11.so.meta
Assets/Plugins/Android/libs/armeabi-v7a/libX11.so.meta
+0
-34
Assets/Plugins/Android/libs/x86/libX11.so
Assets/Plugins/Android/libs/x86/libX11.so
+0
-0
Assets/Plugins/Android/libs/x86/libX11.so.meta
Assets/Plugins/Android/libs/x86/libX11.so.meta
+0
-34
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+6
-6
Assets/SibylSystem/ResourceManagers/GameTextureManager.cs
Assets/SibylSystem/ResourceManagers/GameTextureManager.cs
+3
-3
No files found.
Assets/Plugins/Android/library-release.aar
View file @
96c8ecb7
No preview for this file type
Assets/Plugins/Android/libs/armeabi-v7a/libX11.so
deleted
100644 → 0
View file @
bad48231
File deleted
Assets/Plugins/Android/libs/armeabi-v7a/libX11.so.meta
deleted
100644 → 0
View file @
bad48231
fileFormatVersion: 2
guid: aef8232f55cbd1047a2deb17e26e6954
timeCreated: 1552877172
licenseType: Free
PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
isPreloaded: 0
isOverridable: 0
platformData:
data:
first:
Android: Android
second:
enabled: 1
settings:
CPU: ARMv7
data:
first:
Any:
second:
enabled: 0
settings: {}
data:
first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:
Assets/Plugins/Android/libs/x86/libX11.so
deleted
100644 → 0
View file @
bad48231
File deleted
Assets/Plugins/Android/libs/x86/libX11.so.meta
deleted
100644 → 0
View file @
bad48231
fileFormatVersion: 2
guid: eff93f730b327d447a926733335b0170
timeCreated: 1552877172
licenseType: Free
PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
isPreloaded: 0
isOverridable: 0
platformData:
data:
first:
Android: Android
second:
enabled: 1
settings:
CPU: x86
data:
first:
Any:
second:
enabled: 0
settings: {}
data:
first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:
Assets/SibylSystem/Program.cs
View file @
96c8ecb7
...
...
@@ -278,9 +278,9 @@ public class Program : MonoBehaviour
public
static
string
ANDROID_GAME_PATH
=
"/storage/emulated/0/ygopro2/"
;
#if UNITY_EDITOR || UNITY_STANDALONE_WIN //编译器、Windows
public
static
bool
ANDROID_API_
M
=
true
;
public
static
bool
ANDROID_API_
N
=
true
;
#elif UNITY_ANDROID || UNITY_IPHONE //Mobile Platform
public
static
bool
ANDROID_API_
M
=
false
;
public
static
bool
ANDROID_API_
N
=
false
;
#endif
void
initialize
()
...
...
@@ -438,10 +438,10 @@ public class Program : MonoBehaviour
/**
* 使用Termux编译生成的:libgdiplus.so (https://github.com/Unicorn369/libgdiplus-Android)
* 经测试,只有Android 6.0以上才能正常使用。为了让Android 6.0以下的也能凑合使用立绘效果,需做判断
*
部分6.0机型可能无法正常使用,如需支持需要额外判断型号:华为、OPPO、VIVO、乐视等机型
*
由于部分国产手机系统不够原生,就算是Android 6.0也用不起,只好抛弃能正常使用的手机,改为只支持:Android 7.+
*
* public boolean APIVersion() {
* if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.
M
) {
* if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.
N
) {
* return true;
* } else {
* return false;
...
...
@@ -451,9 +451,9 @@ public class Program : MonoBehaviour
bool
API_SUPPORT
=
jo
.
Call
<
bool
>(
"APIVersion"
);
if
(
API_SUPPORT
==
true
)
{
ANDROID_API_
M
=
true
;
ANDROID_API_
N
=
true
;
}
else
{
ANDROID_API_
M
=
false
;
ANDROID_API_
N
=
false
;
}
#endif
});
...
...
Assets/SibylSystem/ResourceManagers/GameTextureManager.cs
View file @
96c8ecb7
...
...
@@ -261,7 +261,7 @@ public class GameTextureManager
if
(
File
.
Exists
(
"picture/closeup/"
+
pic
.
code
.
ToString
()
+
".png"
))
{
string
path
=
"picture/closeup/"
+
pic
.
code
.
ToString
()
+
".png"
;
if
(
Program
.
ANDROID_API_
M
)
{
if
(
Program
.
ANDROID_API_
N
)
{
BitmapHelper
bitmap
=
new
BitmapHelper
(
path
);
int
left
;
int
right
;
...
...
@@ -587,7 +587,7 @@ public class GameTextureManager
string
path
=
"picture/closeup/"
+
pic
.
code
.
ToString
()
+
".png"
;
if
(!
File
.
Exists
(
path
))
{
if
(
Program
.
ANDROID_API_
M
)
{
if
(
Program
.
ANDROID_API_
N
)
{
path
=
"picture/card/"
+
pic
.
code
.
ToString
()
+
".png"
;
if
(!
File
.
Exists
(
path
))
{
...
...
@@ -669,7 +669,7 @@ public class GameTextureManager
{
try
{
if
(
Program
.
ANDROID_API_
M
)
{
if
(
Program
.
ANDROID_API_
N
)
{
BitmapHelper
bitmap
=
new
BitmapHelper
(
path
);
int
left
;
int
right
;
...
...
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