Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
R
rd-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
苍蓝
rd-ygopro
Commits
c7b54ccc
Commit
c7b54ccc
authored
Nov 16, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more regex
parent
33ed40dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
gframe/client_field.cpp
gframe/client_field.cpp
+2
-2
gframe/deck_con.cpp
gframe/deck_con.cpp
+1
-1
No files found.
gframe/client_field.cpp
View file @
c7b54ccc
...
...
@@ -1481,7 +1481,7 @@ void ClientField::UpdateDeclarableCodeType(bool enter) {
auto
cp
=
dataManager
.
GetCodePointer
(
cit
->
first
);
//verified by _strings
//datas.alias can be double card names or alias
if
(
is_declarable
(
cp
->
second
,
declarable_type
))
{
if
(
pname
==
cit
->
second
.
name
)
{
//exact match
if
(
pname
==
cit
->
second
.
name
||
mainGame
->
CheckRegEx
(
cit
->
second
.
name
,
pname
,
true
)
)
{
//exact match
mainGame
->
lstANCard
->
insertItem
(
0
,
cit
->
second
.
name
.
c_str
(),
-
1
);
ancard
.
insert
(
ancard
.
begin
(),
cit
->
first
);
}
else
{
...
...
@@ -1528,7 +1528,7 @@ void ClientField::UpdateDeclarableCodeOpcode(bool enter) {
auto
cp
=
dataManager
.
GetCodePointer
(
cit
->
first
);
//verified by _strings
//datas.alias can be double card names or alias
if
(
is_declarable
(
cp
->
second
,
opcode
))
{
if
(
pname
==
cit
->
second
.
name
)
{
//exact match
if
(
pname
==
cit
->
second
.
name
||
mainGame
->
CheckRegEx
(
cit
->
second
.
name
,
pname
,
true
)
)
{
//exact match
mainGame
->
lstANCard
->
insertItem
(
0
,
cit
->
second
.
name
.
c_str
(),
-
1
);
ancard
.
insert
(
ancard
.
begin
(),
cit
->
first
);
}
else
{
...
...
gframe/deck_con.cpp
View file @
c7b54ccc
...
...
@@ -1012,7 +1012,7 @@ void DeckBuilder::SortList() {
auto
left
=
results
.
begin
();
const
wchar_t
*
pstr
=
mainGame
->
ebCardName
->
getText
();
for
(
auto
it
=
results
.
begin
();
it
!=
results
.
end
();
++
it
)
{
if
(
wcscmp
(
pstr
,
dataManager
.
GetName
((
*
it
)
->
first
))
==
0
)
{
if
(
wcscmp
(
pstr
,
dataManager
.
GetName
((
*
it
)
->
first
))
==
0
||
mainGame
->
CheckRegEx
(
dataManager
.
GetName
((
*
it
)
->
first
),
pstr
,
true
)
)
{
std
::
iter_swap
(
left
,
it
);
++
left
;
}
...
...
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