Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
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
Commits
2355394b
Commit
2355394b
authored
May 16, 2024
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判断非cbDBCategory时bool is_packlist直接为false
修改提示文本
parent
c105a2f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
Classes/gframe/deck_manager.cpp
Classes/gframe/deck_manager.cpp
+1
-5
mobile/src/main/res/values-zh/strings.xml
mobile/src/main/res/values-zh/strings.xml
+1
-1
No files found.
Classes/gframe/deck_manager.cpp
View file @
2355394b
...
...
@@ -255,20 +255,16 @@ void DeckManager::GetDeckFile(wchar_t* ret, irr::gui::IGUIComboBox* cbCategory,
bool
DeckManager
::
LoadDeck
(
irr
::
gui
::
IGUIComboBox
*
cbCategory
,
irr
::
gui
::
IGUIComboBox
*
cbDeck
)
{
wchar_t
filepath
[
256
];
GetDeckFile
(
filepath
,
cbCategory
,
cbDeck
);
bool
is_packlist
=
cbCategory
->
getSelected
()
==
0
;
bool
is_packlist
=
cbCategory
==
mainGame
->
cbDBCategory
?
(
cbCategory
->
getSelected
()
==
0
)
:
false
;
bool
res
=
LoadDeck
(
filepath
,
is_packlist
);
if
(
res
&&
mainGame
->
is_building
)
mainGame
->
deckBuilder
.
RefreshPackListScroll
();
return
res
;
}
FILE
*
DeckManager
::
OpenDeckFile
(
const
wchar_t
*
file
,
const
char
*
mode
)
{
#ifdef WIN32
FILE
*
fp
=
_wfopen
(
file
,
(
wchar_t
*
)
mode
);
#else
char
file2
[
256
];
BufferIO
::
EncodeUTF8
(
file
,
file2
);
FILE
*
fp
=
fopen
(
file2
,
mode
);
#endif
return
fp
;
}
IReadFile
*
DeckManager
::
OpenDeckReader
(
const
wchar_t
*
file
)
{
...
...
mobile/src/main/res/values-zh/strings.xml
View file @
2355394b
...
...
@@ -204,7 +204,7 @@
<string
name=
"deck_share_head"
>
卡组分享来源YGOMobile
</string>
<string
name=
"deck_share_fail"
>
卡组分享失败
</string>
<string
name=
"choose_game_path"
>
选择游戏目录
</string>
<string
name=
"download_home"
>
网盘
下载
</string>
<string
name=
"download_home"
>
官网
下载
</string>
<string
name=
"reset_game_res"
>
重置资源
</string>
<string
name=
"downloading_images"
>
上次任务正在停止,请稍后再试
</string>
<string
name=
"download_image_progress"
formatted=
"false"
>
正在下载卡图 %d/%d
</string>
...
...
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