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
12e6099d
Commit
12e6099d
authored
Dec 25, 2025
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ygopro添加保存和获取最后genesys卡表的功能
读取genesys禁卡表存入_genesys_lflist
parent
e2f3bbec
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
235 additions
and
103 deletions
+235
-103
Classes/gframe/deck_manager.cpp
Classes/gframe/deck_manager.cpp
+223
-102
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+4
-1
libcore/android/android_tools.cpp
libcore/android/android_tools.cpp
+6
-0
libcore/android/android_tools.h
libcore/android/android_tools.h
+2
-0
No files found.
Classes/gframe/deck_manager.cpp
View file @
12e6099d
This diff is collapsed.
Click to expand it.
Classes/gframe/game.cpp
View file @
12e6099d
...
...
@@ -735,7 +735,7 @@ bool Game::Initialize(ANDROID_APP app, irr::android::InitOptions *options) {
cbGenesysLFlist
=
irr
::
gui
::
CAndroidGUIComboBox
::
addAndroidComboBox
(
env
,
Resize
(
posX
+
110
,
posY
,
posX
+
230
,
posY
+
30
),
wSettings
,
COMBOBOX_LFLIST
);
cbGenesysLFlist
->
setMaxSelectionRows
(
6
);
for
(
unsigned
int
i
=
0
;
i
<
deckManager
.
_genesys_lfList
.
size
();
++
i
)
{
cbLFlist
->
addItem
(
deckManager
.
_genesys_lfList
[
i
].
listName
.
c_str
());
cb
Genesys
LFlist
->
addItem
(
deckManager
.
_genesys_lfList
[
i
].
listName
.
c_str
());
if
(
!
wcscmp
(
deckManager
.
_genesys_lfList
[
i
].
listName
.
c_str
(),
gameConf
.
last_genesys_limit_list_name
))
{
//找到名称相同时找到对应的index值作为默认值
gameConf
.
default_genesys_lflist
=
i
;
}
...
...
@@ -2031,6 +2031,9 @@ void Game::LoadConfig() {
// 获取 lastLimit 值并存储到 gameConf.last_limit_list_name
BufferIO
::
DecodeUTF8
(
irr
::
android
::
getLastLimit
(
appMain
).
c_str
(),
wstr
);
BufferIO
::
CopyWStr
(
wstr
,
gameConf
.
last_limit_list_name
,
64
);
// 获取 lastGenesysLimit 值并存储到 gameConf.last_genesys_limit_list_name
BufferIO
::
DecodeUTF8
(
irr
::
android
::
getLastGenesysLimit
(
appMain
).
c_str
(),
wstr
);
BufferIO
::
CopyWStr
(
wstr
,
gameConf
.
last_genesys_limit_list_name
,
64
);
ALOGW
(
"cc game: lastLimit: %ls"
,
wstr
);
// 获取 lastCategory 值并存储到 gameConf.lastcategory
BufferIO
::
DecodeUTF8
(
irr
::
android
::
getLastCategory
(
appMain
).
c_str
(),
wstr
);;
...
...
libcore/android/android_tools.cpp
View file @
12e6099d
...
...
@@ -414,6 +414,9 @@ float getYScale(ANDROID_APP app){
irr
::
io
::
path
getLastLimit
(
ANDROID_APP
app
)
{
return
getSetting
(
app
,
"lastlimit"
);
}
irr
::
io
::
path
getLastGenesysLimit
(
ANDROID_APP
app
)
{
return
getSetting
(
app
,
"lastGenesysLimit"
);
}
//Retrive last deck name.
irr
::
io
::
path
getLastDeck
(
ANDROID_APP
app
)
{
...
...
@@ -506,6 +509,9 @@ irr::io::path getSetting(ANDROID_APP app, const char* key) {
void
setLastLimit
(
ANDROID_APP
app
,
const
char
*
limitname
)
{
saveSetting
(
app
,
"lastlimit"
,
limitname
);
}
void
setLastGenesysLimit
(
ANDROID_APP
app
,
const
char
*
limitname
)
{
saveSetting
(
app
,
"lastGenesysLimit"
,
limitname
);
}
//save last deck name.
void
setLastDeck
(
ANDROID_APP
app
,
const
char
*
deckname
)
{
...
...
libcore/android/android_tools.h
View file @
12e6099d
...
...
@@ -161,6 +161,7 @@ extern irr::io::path getFontPath(ANDROID_APP app);
//Retrive last limit name.
extern
irr
::
io
::
path
getLastLimit
(
ANDROID_APP
app
);
extern
irr
::
io
::
path
getLastGenesysLimit
(
ANDROID_APP
app
);
//Retrive last deck name.
extern
irr
::
io
::
path
getLastDeck
(
ANDROID_APP
app
);
...
...
@@ -174,6 +175,7 @@ extern irr::io::path getSetting(ANDROID_APP app, const char* key);
//save last limit name.
extern
void
setLastLimit
(
ANDROID_APP
app
,
const
char
*
limitname
);
extern
void
setLastGenesysLimit
(
ANDROID_APP
app
,
const
char
*
limitname
);
//save last deck name.
extern
void
setLastDeck
(
ANDROID_APP
app
,
const
char
*
deckname
);
...
...
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