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
ff10f957
Commit
ff10f957
authored
Mar 03, 2019
by
Unicorn369
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update
parent
458e7cba
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
33 deletions
+5
-33
Assets/Plugins/Android/library-release.aar
Assets/Plugins/Android/library-release.aar
+0
-0
Assets/SibylSystem/AppLanguage.cs
Assets/SibylSystem/AppLanguage.cs
+2
-29
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+3
-4
Assets/StreamingAssets/ygocore.zip
Assets/StreamingAssets/ygocore.zip
+0
-0
No files found.
Assets/Plugins/Android/library-release.aar
View file @
ff10f957
No preview for this file type
Assets/SibylSystem/AppLanguage.cs
View file @
ff10f957
...
...
@@ -17,35 +17,8 @@ public class AppLanguage
public
static
string
ES
=
"/es-ES"
;
//西班牙语(西班牙) Spanish
public
static
string
Null
=
""
;
//Unknown
//public static string Null = "en-WW"; //English
/*public static string LanguageDir()
{
if (Application.systemLanguage == SystemLanguage.ChineseSimplified) { //可能无法识别
return CN; //中文简体
} else if (Application.systemLanguage == SystemLanguage.ChineseTraditional) {//可能无法识别
return TW; //中文繁體
} else if (Application.systemLanguage == SystemLanguage.Chinese) {
return CN; //中文
} else if (Application.systemLanguage == SystemLanguage.English) {
return US; //English
} else if (Application.systemLanguage == SystemLanguage.French) {
return FR; //Français
} else if (Application.systemLanguage == SystemLanguage.German) {
return DE; //Deutsch
} else if (Application.systemLanguage == SystemLanguage.Italian) {
return IT; //Italiano
} else if (Application.systemLanguage == SystemLanguage.Japanese) {
return JP; //日本語
} else if (Application.systemLanguage == SystemLanguage.Korean) {
return KR; //한국어
} else if (Application.systemLanguage == SystemLanguage.Spanish) {
return ES; //Español
} else {
return Null;
}
}*/
//public static string Null = ""; //Unknown
public
static
string
Null
=
"/en-US"
;
//English
public
static
string
LanguageDir
()
{
...
...
Assets/SibylSystem/Program.cs
View file @
ff10f957
...
...
@@ -348,22 +348,21 @@ public class Program : MonoBehaviour
}
}
if
(
Directory
.
Exists
(
"expansions"
+
AppLanguage
.
LanguageDir
()))
//System Language
if
(
Directory
.
Exists
(
"expansions"
))
{
fileInfos
=
(
new
DirectoryInfo
(
"expansions"
+
AppLanguage
.
LanguageDir
())).
GetFiles
().
OrderByDescending
(
x
=>
x
.
Name
).
ToArray
();
//System Language
fileInfos
=
(
new
DirectoryInfo
(
"expansions"
)).
GetFiles
().
OrderByDescending
(
x
=>
x
.
Name
).
ToArray
();
for
(
int
i
=
0
;
i
<
fileInfos
.
Length
;
i
++)
{
if
(
fileInfos
[
i
].
Name
.
Length
>
4
)
{
if
(
fileInfos
[
i
].
Name
.
Substring
(
fileInfos
[
i
].
Name
.
Length
-
4
,
4
)
==
".cdb"
)
{
YGOSharp
.
CardsManager
.
initialize
(
"expansions
"
+
AppLanguage
.
LanguageDir
()
+
"
/"
+
fileInfos
[
i
].
Name
);
YGOSharp
.
CardsManager
.
initialize
(
"expansions/"
+
fileInfos
[
i
].
Name
);
}
}
}
}
fileInfos
=
(
new
DirectoryInfo
(
"pack"
)).
GetFiles
();
//fileInfos = (new DirectoryInfo("pack" + AppLanguage.LanguageDir())).GetFiles();
for
(
int
i
=
0
;
i
<
fileInfos
.
Length
;
i
++)
...
...
Assets/StreamingAssets/ygocore.zip
View file @
ff10f957
No preview for this file type
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