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
95fae10c
Commit
95fae10c
authored
Sep 06, 2019
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 路径拼接判断
parent
37963d3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
+10
-6
No files found.
mobile/src/main/java/cn/garymb/ygomobile/AppsSettings.java
View file @
95fae10c
...
@@ -27,7 +27,9 @@ import cn.garymb.ygomobile.utils.FileLogUtil;
...
@@ -27,7 +27,9 @@ import cn.garymb.ygomobile.utils.FileLogUtil;
import
cn.garymb.ygomobile.utils.IOUtils
;
import
cn.garymb.ygomobile.utils.IOUtils
;
import
cn.garymb.ygomobile.utils.SystemUtils
;
import
cn.garymb.ygomobile.utils.SystemUtils
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
CORE_DECK_PATH
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
CORE_EXPANSIONS
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
CORE_EXPANSIONS
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
CORE_PACK_PATH
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
CORE_SYSTEM_PATH
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
CORE_SYSTEM_PATH
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
DEF_PREF_FONT_SIZE
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
DEF_PREF_FONT_SIZE
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
DEF_PREF_NOTCH_HEIGHT
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
DEF_PREF_NOTCH_HEIGHT
;
...
@@ -42,6 +44,8 @@ import static cn.garymb.ygomobile.Constants.PREF_NOTCH_HEIGHT;
...
@@ -42,6 +44,8 @@ import static cn.garymb.ygomobile.Constants.PREF_NOTCH_HEIGHT;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
PREF_ONLY_GAME
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
PREF_ONLY_GAME
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
PREF_READ_EX
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
PREF_READ_EX
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
PREF_SENSOR_REFRESH
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
PREF_SENSOR_REFRESH
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
WINDBOT_DECK_PATH
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
WINDBOT_PATH
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
YDK_FILE_EX
;
import
static
cn
.
garymb
.
ygomobile
.
Constants
.
YDK_FILE_EX
;
public
class
AppsSettings
{
public
class
AppsSettings
{
...
@@ -468,12 +472,12 @@ public class AppsSettings {
...
@@ -468,12 +472,12 @@ public class AppsSettings {
//获取卡组文件夹
//获取卡组文件夹
public
String
getDeckDir
()
{
public
String
getDeckDir
()
{
return
new
File
(
getResourcePath
(),
C
onstants
.
C
ORE_DECK_PATH
).
getAbsolutePath
();
return
new
File
(
getResourcePath
(),
CORE_DECK_PATH
).
getAbsolutePath
();
}
}
//获取ai卡组文件夹
//获取ai卡组文件夹
public
String
getAiDeckDir
()
{
public
String
getAiDeckDir
()
{
return
new
File
(
getResourcePath
(),
Constants
.
WINDBOT_PATH
+
"/Decks"
).
getAbsolutePath
();
return
new
File
(
getResourcePath
(),
WINDBOT_PATH
+
"/Decks"
).
getAbsolutePath
();
}
}
//获取新卡卡包文件夹
//获取新卡卡包文件夹
...
@@ -510,13 +514,13 @@ public class AppsSettings {
...
@@ -510,13 +514,13 @@ public class AppsSettings {
public
String
getLastDeckPath
()
{
public
String
getLastDeckPath
()
{
String
path
;
String
path
;
if
(
TextUtils
.
equals
(
context
.
getString
(
R
.
string
.
category_pack
),
getLastCategory
()))
{
if
(
TextUtils
.
equals
(
context
.
getString
(
R
.
string
.
category_pack
),
getLastCategory
()))
{
path
=
getResourcePath
()
+
"/"
+
C
onstants
.
C
ORE_PACK_PATH
+
"/"
+
getLastDeckName
()
+
YDK_FILE_EX
;
path
=
getResourcePath
()
+
"/"
+
CORE_PACK_PATH
+
"/"
+
getLastDeckName
()
+
YDK_FILE_EX
;
}
else
if
(
TextUtils
.
equals
(
context
.
getString
(
R
.
string
.
category_windbot_deck
),
getLastCategory
()))
{
}
else
if
(
TextUtils
.
equals
(
context
.
getString
(
R
.
string
.
category_windbot_deck
),
getLastCategory
()))
{
path
=
getResourcePath
()
+
"/"
+
Constants
.
WINDBOT_PATH
+
"/"
+
getLastCategory
()
+
"/"
+
getLastDeckName
()
+
YDK_FILE_EX
;
path
=
getResourcePath
()
+
"/"
+
WINDBOT_PATH
+
"/"
+
WINDBOT_DECK_PATH
+
"/"
+
getLastDeckName
()
+
YDK_FILE_EX
;
}
else
if
(
TextUtils
.
equals
(
context
.
getString
(
R
.
string
.
category_Uncategorized
),
getLastCategory
()))
{
}
else
if
(
TextUtils
.
equals
(
context
.
getString
(
R
.
string
.
category_Uncategorized
),
getLastCategory
()))
{
path
=
getResourcePath
()
+
"/"
+
C
onstants
.
C
ORE_DECK_PATH
+
"/"
+
getLastDeckName
()
+
YDK_FILE_EX
;
path
=
getResourcePath
()
+
"/"
+
CORE_DECK_PATH
+
"/"
+
getLastDeckName
()
+
YDK_FILE_EX
;
}
else
{
}
else
{
path
=
getResourcePath
()
+
"/"
+
C
onstants
.
C
ORE_DECK_PATH
+
"/"
+
getLastCategory
()
+
"/"
+
getLastDeckName
()
+
YDK_FILE_EX
;
path
=
getResourcePath
()
+
"/"
+
CORE_DECK_PATH
+
"/"
+
getLastCategory
()
+
"/"
+
getLastDeckName
()
+
YDK_FILE_EX
;
}
}
Log
.
e
(
"Appsettings"
,
"拼接最后路径"
+
path
);
Log
.
e
(
"Appsettings"
,
"拼接最后路径"
+
path
);
return
path
;
return
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