Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile-Cn-Ko-En
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
fallenstardust
YGOMobile-Cn-Ko-En
Commits
49720f62
Commit
49720f62
authored
Apr 07, 2019
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update versioncode
parent
0891ecd8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
mobile/build.gradle
mobile/build.gradle
+2
-2
mobile/src/main/java/ocgcore/StringManager.java
mobile/src/main/java/ocgcore/StringManager.java
+12
-12
No files found.
mobile/build.gradle
View file @
49720f62
...
...
@@ -8,8 +8,8 @@ android {
applicationId
"cn.garymb.ygomobile"
minSdkVersion
16
targetSdkVersion
28
versionCode
340
200331
versionName
"3.4.
2
"
versionCode
340
300407
versionName
"3.4.
3
"
flavorDimensions
"versionCode"
vectorDrawables
.
useSupportLibrary
=
true
ndk
{
...
...
mobile/src/main/java/ocgcore/StringManager.java
View file @
49720f62
...
...
@@ -26,7 +26,7 @@ import ocgcore.enums.CardOt;
public
class
StringManager
implements
Closeable
{
private
static
final
String
PRE_SYSTEM
=
"!system"
;
private
static
final
String
PRE_SETNAME
=
"!setname"
;
private
static
final
String
PRE_SETNAME
=
"!setname"
;
private
final
SparseArray
<
String
>
mSystem
=
new
SparseArray
<>();
private
final
List
<
CardSet
>
mCardSets
=
new
ArrayList
<>();
...
...
@@ -35,7 +35,7 @@ public class StringManager implements Closeable {
}
@Override
public
void
close
(){
public
void
close
()
{
mSystem
.
clear
();
mCardSets
.
clear
();
}
...
...
@@ -46,29 +46,29 @@ public class StringManager implements Closeable {
File
stringFile
=
new
File
(
AppsSettings
.
get
().
getResourcePath
(),
Constants
.
CORE_STRING_PATH
);
boolean
rs1
=
loadFile
(
stringFile
.
getAbsolutePath
());
boolean
rs2
=
true
;
boolean
res3
=
true
;
boolean
res3
=
true
;
if
(
AppsSettings
.
get
().
isReadExpansions
())
{
File
stringFile2
=
new
File
(
AppsSettings
.
get
().
getExpansionsPath
(),
Constants
.
CORE_STRING_PATH
);
rs2
=
loadFile
(
stringFile2
.
getAbsolutePath
());
File
[]
files
=
AppsSettings
.
get
().
getExpansionsPath
().
listFiles
();
if
(
files
!=
null
)
{
for
(
File
file:
files
)
{
if
(
file
.
isFile
()
&&
file
.
getName
().
endsWith
(
".zip"
))
{
File
[]
files
=
AppsSettings
.
get
().
getExpansionsPath
().
listFiles
();
if
(
files
!=
null
)
{
for
(
File
file
:
files
)
{
if
(
file
.
isFile
()
&&
file
.
getName
().
endsWith
(
".zip"
))
{
try
{
ZipFile
zipFile
=
new
ZipFile
(
file
.
getAbsoluteFile
());
ZipFile
zipFile
=
new
ZipFile
(
file
.
getAbsoluteFile
());
ZipEntry
entry
=
zipFile
.
getEntry
(
Constants
.
CORE_STRING_PATH
);
if
(
entry
!=
null
)
{
res3
&=
loadFile
(
zipFile
.
getInputStream
(
entry
));
if
(
entry
!=
null
)
{
res3
&=
loadFile
(
zipFile
.
getInputStream
(
entry
));
}
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
res3
=
false
;
res3
=
false
;
}
}
}
}
}
return
rs1
&&
rs2
&&
res3
;
return
rs1
&&
rs2
&&
res3
;
}
public
boolean
loadFile
(
InputStream
inputStream
)
{
...
...
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