Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
Commits
c4356969
Commit
c4356969
authored
Nov 18, 2018
by
edo9300
Committed by
nanahira
Nov 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed function definition (#10)
* Update game.cpp * Update game.h
parent
5ff31121
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
17 deletions
+2
-17
gframe/game.cpp
gframe/game.cpp
+1
-15
gframe/game.h
gframe/game.h
+1
-2
No files found.
gframe/game.cpp
View file @
c4356969
...
...
@@ -1398,21 +1398,7 @@ void Game::FlashWindow() {
FlashWindowEx
(
&
fi
);
#endif
}
bool
Game
::
CheckRegEx
(
const
wchar_t
*
text
,
const
wchar_t
*
exp
,
bool
exact
)
{
if
(
!
gameConf
.
search_regex
)
return
false
;
bool
result
;
try
{
if
(
exact
)
result
=
std
::
regex_match
(
text
,
std
::
wregex
(
exp
));
else
result
=
std
::
regex_search
(
text
,
std
::
wregex
(
exp
));
}
catch
(...)
{
result
=
false
;
}
return
result
;
}
bool
Game
::
CheckRegEx
(
std
::
wstring
text
,
const
wchar_t
*
exp
,
bool
exact
)
{
bool
Game
::
CheckRegEx
(
const
std
::
wstring
&
text
,
const
std
::
wstring
&
exp
,
bool
exact
)
{
if
(
!
gameConf
.
search_regex
)
return
false
;
bool
result
;
...
...
gframe/game.h
View file @
c4356969
...
...
@@ -144,8 +144,7 @@ public:
int
LocalPlayer
(
int
player
);
const
wchar_t
*
LocalName
(
int
local_player
);
bool
CheckRegEx
(
const
wchar_t
*
text
,
const
wchar_t
*
exp
,
bool
exact
=
false
);
bool
CheckRegEx
(
std
::
wstring
text
,
const
wchar_t
*
exp
,
bool
exact
=
false
);
bool
CheckRegEx
(
const
std
::
wstring
&
text
,
const
std
::
wstring
&
exp
,
bool
exact
);
bool
HasFocus
(
EGUI_ELEMENT_TYPE
type
)
const
{
irr
::
gui
::
IGUIElement
*
focus
=
env
->
getFocus
();
...
...
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