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
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
苍蓝
ygopro
Commits
f214527d
Commit
f214527d
authored
Apr 16, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add no-side-check
parent
2fc6f7fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
gframe/deck_manager.cpp
gframe/deck_manager.cpp
+4
-0
premake5.lua
premake5.lua
+1
-0
No files found.
gframe/deck_manager.cpp
View file @
f214527d
...
@@ -188,17 +188,21 @@ bool DeckManager::LoadSide(Deck& deck, int* dbuf, int mainc, int sidec) {
...
@@ -188,17 +188,21 @@ bool DeckManager::LoadSide(Deck& deck, int* dbuf, int mainc, int sidec) {
pcount
[
deck
.
side
[
i
]
->
first
]
++
;
pcount
[
deck
.
side
[
i
]
->
first
]
++
;
Deck
ndeck
;
Deck
ndeck
;
LoadDeck
(
ndeck
,
dbuf
,
mainc
,
sidec
);
LoadDeck
(
ndeck
,
dbuf
,
mainc
,
sidec
);
#ifndef YGOPRO_NO_SIDE_CHECK
if
(
ndeck
.
main
.
size
()
!=
deck
.
main
.
size
()
||
ndeck
.
extra
.
size
()
!=
deck
.
extra
.
size
())
if
(
ndeck
.
main
.
size
()
!=
deck
.
main
.
size
()
||
ndeck
.
extra
.
size
()
!=
deck
.
extra
.
size
())
return
false
;
return
false
;
#endif
for
(
size_t
i
=
0
;
i
<
ndeck
.
main
.
size
();
++
i
)
for
(
size_t
i
=
0
;
i
<
ndeck
.
main
.
size
();
++
i
)
ncount
[
ndeck
.
main
[
i
]
->
first
]
++
;
ncount
[
ndeck
.
main
[
i
]
->
first
]
++
;
for
(
size_t
i
=
0
;
i
<
ndeck
.
extra
.
size
();
++
i
)
for
(
size_t
i
=
0
;
i
<
ndeck
.
extra
.
size
();
++
i
)
ncount
[
ndeck
.
extra
[
i
]
->
first
]
++
;
ncount
[
ndeck
.
extra
[
i
]
->
first
]
++
;
for
(
size_t
i
=
0
;
i
<
ndeck
.
side
.
size
();
++
i
)
for
(
size_t
i
=
0
;
i
<
ndeck
.
side
.
size
();
++
i
)
ncount
[
ndeck
.
side
[
i
]
->
first
]
++
;
ncount
[
ndeck
.
side
[
i
]
->
first
]
++
;
#ifndef YGOPRO_NO_SIDE_CHECK
for
(
auto
cdit
=
ncount
.
begin
();
cdit
!=
ncount
.
end
();
++
cdit
)
for
(
auto
cdit
=
ncount
.
begin
();
cdit
!=
ncount
.
end
();
++
cdit
)
if
(
cdit
->
second
!=
pcount
[
cdit
->
first
])
if
(
cdit
->
second
!=
pcount
[
cdit
->
first
])
return
false
;
return
false
;
#endif
deck
=
ndeck
;
deck
=
ndeck
;
return
true
;
return
true
;
}
}
...
...
premake5.lua
View file @
f214527d
...
@@ -58,6 +58,7 @@ boolOptions = {
...
@@ -58,6 +58,7 @@ boolOptions = {
"no-lua-safe"
,
"no-lua-safe"
,
"message-debug"
,
"message-debug"
,
"default-duel-rule"
,
"default-duel-rule"
,
"no-side-check"
,
}
}
for
_
,
boolOption
in
ipairs
(
boolOptions
)
do
for
_
,
boolOption
in
ipairs
(
boolOptions
)
do
...
...
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