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
074391e7
Commit
074391e7
authored
Mar 12, 2026
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch-rule-code' of github.com:salix5/ygopro into develop
parents
cdefb7c2
76670e26
Pipeline
#43662
failed with stages
in 3 minutes and 21 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
3 deletions
+33
-3
gframe/data_manager.cpp
gframe/data_manager.cpp
+13
-3
resource/migrate.sql
resource/migrate.sql
+20
-0
No files found.
gframe/data_manager.cpp
View file @
074391e7
...
...
@@ -61,9 +61,6 @@ bool DataManager::ReadDB(sqlite3* pDB) {
cd
.
rule_code
=
cd
.
alias
;
cd
.
alias
=
0
;
}
else
if
(
cd
.
alias
==
6218704
)
{
cd
.
rule_code
=
13331639
;
}
else
if
(
cd
.
alias
&&
!
(
cd
.
type
&
TYPE_TOKEN
)
&&
!
is_alternative
(
cd
.
code
,
cd
.
alias
))
{
cd
.
rule_code
=
cd
.
alias
;
cd
.
alias
=
0
;
...
...
@@ -85,6 +82,19 @@ bool DataManager::ReadDB(sqlite3* pDB) {
}
}
sqlite3_finalize
(
pStmt
);
for
(
auto
&
entry
:
_datas
)
{
auto
&
cd
=
entry
.
second
;
if
(
cd
.
rule_code
)
continue
;
if
(
!
cd
.
alias
)
continue
;
if
(
cd
.
type
&
TYPE_TOKEN
)
continue
;
auto
it
=
_datas
.
find
(
cd
.
alias
);
if
(
it
==
_datas
.
end
())
continue
;
cd
.
rule_code
=
it
->
second
.
rule_code
;
}
for
(
const
auto
&
entry
:
extra_setcode
)
{
const
auto
&
code
=
entry
.
first
;
const
auto
&
list
=
entry
.
second
;
...
...
resource/migrate.sql
0 → 100644
View file @
074391e7
--step 1: add new column
ALTER
TABLE
datas
ADD
COLUMN
rule_code
INTEGER
DEFAULT
0
;
--step 2: update "treated as X" cards
UPDATE
datas
SET
rule_code
=
alias
,
alias
=
0
WHERE
id
IN
(
SELECT
id
FROM
datas
WHERE
NOT
(
type
&
0
x4000
)
AND
alias
!=
0
AND
abs
(
id
-
alias
)
>=
20
);
--step 3: update special cards
UPDATE
datas
SET
rule_code
=
alias
,
alias
=
0
WHERE
id
=
5405695
;
UPDATE
datas
SET
rule_code
=
13331639
WHERE
alias
=
6218704
;
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