Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
1
Merge Requests
1
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
nanahira
ygopro
Commits
60bb189e
Commit
60bb189e
authored
Mar 11, 2026
by
nanahira
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve alternative alias chain rule_code in DataManager
parent
04e02997
Pipeline
#43655
failed with stages
in 3 minutes and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
gframe/data_manager.cpp
gframe/data_manager.cpp
+13
-0
No files found.
gframe/data_manager.cpp
View file @
60bb189e
...
...
@@ -85,6 +85,19 @@ bool DataManager::ReadDB(sqlite3* pDB) {
}
}
sqlite3_finalize
(
pStmt
);
// Resolve one extra hop for alternative alias chains, mirroring get_original_code_rule logic:
// For A->B->C (all alternative), A.rule_code should be C, not B.
// Strictly one extra hop: look up the alias target's get_duel_code().
for
(
auto
&
entry
:
_datas
)
{
auto
&
cd
=
entry
.
second
;
if
(
cd
.
rule_code
!=
0
)
continue
;
if
(
!
is_alternative
(
cd
.
code
,
cd
.
alias
))
continue
;
auto
it
=
_datas
.
find
(
cd
.
alias
);
if
(
it
==
_datas
.
end
())
continue
;
auto
rule
=
it
->
second
.
get_duel_code
();
if
(
rule
!=
cd
.
alias
)
cd
.
rule_code
=
rule
;
}
for
(
const
auto
&
entry
:
extra_setcode
)
{
const
auto
&
code
=
entry
.
first
;
const
auto
&
list
=
entry
.
second
;
...
...
nanahira
@nanahira
mentioned in commit
cdefb7c2
·
Mar 12, 2026
mentioned in commit
cdefb7c2
mentioned in commit cdefb7c20ec22e144c289522fe00aeec31af9624
Toggle commit list
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