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
wyykak
ygopro
Commits
e326411e
Commit
e326411e
authored
Nov 19, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into server
parents
7a5c75b5
325bd642
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
20 deletions
+5
-20
gframe/deck_con.cpp
gframe/deck_con.cpp
+1
-1
gframe/game.cpp
gframe/game.cpp
+1
-15
gframe/game.h
gframe/game.h
+1
-2
script
script
+1
-1
strings.conf
strings.conf
+1
-1
No files found.
gframe/deck_con.cpp
View file @
e326411e
...
@@ -944,7 +944,7 @@ void DeckBuilder::FilterCards() {
...
@@ -944,7 +944,7 @@ void DeckBuilder::FilterCards() {
int
trycode
=
BufferIO
::
GetVal
(
elements_iterator
->
c_str
());
int
trycode
=
BufferIO
::
GetVal
(
elements_iterator
->
c_str
());
bool
tryresult
=
dataManager
.
GetData
(
trycode
,
0
);
bool
tryresult
=
dataManager
.
GetData
(
trycode
,
0
);
if
(
!
tryresult
&&
!
CardNameContains
(
text
.
name
.
c_str
(),
elements_iterator
->
c_str
())
&&
text
.
text
.
find
(
elements_iterator
->
c_str
())
==
std
::
wstring
::
npos
if
(
!
tryresult
&&
!
CardNameContains
(
text
.
name
.
c_str
(),
elements_iterator
->
c_str
())
&&
text
.
text
.
find
(
elements_iterator
->
c_str
())
==
std
::
wstring
::
npos
&&
!
mainGame
->
CheckRegEx
(
text
.
text
,
elements_iterator
->
c_str
()
)
&&
!
mainGame
->
CheckRegEx
(
text
.
text
,
*
elements_iterator
)
&&
(
!
set_code_map
[
*
elements_iterator
]
||
!
check_set_code
(
data
,
set_code_map
[
*
elements_iterator
])))
{
&&
(
!
set_code_map
[
*
elements_iterator
]
||
!
check_set_code
(
data
,
set_code_map
[
*
elements_iterator
])))
{
is_target
=
false
;
is_target
=
false
;
break
;
break
;
...
...
gframe/game.cpp
View file @
e326411e
...
@@ -2175,21 +2175,7 @@ void Game::takeScreenshot() {
...
@@ -2175,21 +2175,7 @@ void Game::takeScreenshot() {
}
else
}
else
device
->
getLogger
()
->
log
(
L"Failed to take screenshot."
,
irr
::
ELL_WARNING
);
device
->
getLogger
()
->
log
(
L"Failed to take screenshot."
,
irr
::
ELL_WARNING
);
}
}
bool
Game
::
CheckRegEx
(
const
wchar_t
*
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
;
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
)
{
if
(
!
gameConf
.
search_regex
)
if
(
!
gameConf
.
search_regex
)
return
false
;
return
false
;
bool
result
;
bool
result
;
...
...
gframe/game.h
View file @
e326411e
...
@@ -185,8 +185,7 @@ public:
...
@@ -185,8 +185,7 @@ public:
int
LocalPlayer
(
int
player
);
int
LocalPlayer
(
int
player
);
const
wchar_t
*
LocalName
(
int
local_player
);
const
wchar_t
*
LocalName
(
int
local_player
);
const
char
*
GetLocaleDir
(
const
char
*
dir
);
const
char
*
GetLocaleDir
(
const
char
*
dir
);
bool
CheckRegEx
(
const
wchar_t
*
text
,
const
wchar_t
*
exp
,
bool
exact
=
false
);
bool
CheckRegEx
(
const
std
::
wstring
&
text
,
const
std
::
wstring
&
exp
,
bool
exact
=
false
);
bool
CheckRegEx
(
std
::
wstring
text
,
const
wchar_t
*
exp
,
bool
exact
=
false
);
bool
HasFocus
(
EGUI_ELEMENT_TYPE
type
)
const
{
bool
HasFocus
(
EGUI_ELEMENT_TYPE
type
)
const
{
irr
::
gui
::
IGUIElement
*
focus
=
env
->
getFocus
();
irr
::
gui
::
IGUIElement
*
focus
=
env
->
getFocus
();
...
...
script
@
87b2a039
Subproject commit
9df625b2ab530f9f183cfc1b2971da802625ea6a
Subproject commit
87b2a039e3b02c8fad75aa53719095e60c866466
strings.conf
View file @
e326411e
...
@@ -766,7 +766,7 @@
...
@@ -766,7 +766,7 @@
#setname 0x8c 德鲁伊 ドルイド
#setname 0x8c 德鲁伊 ドルイド
!
setname
0
x8d
鬼计 ゴーストリック
!
setname
0
x8d
鬼计 ゴーストリック
!
setname
0
x8e
吸血鬼 ヴァンパイア
!
setname
0
x8e
吸血鬼 ヴァンパイア
!
setname
0
x8f
刷
啦啦
ズババ
!
setname
0
x8f
刷
拉拉
ズババ
!
setname
0
x90
森罗 森羅
!
setname
0
x90
森罗 森羅
!
setname
0
x91
王家长眠之谷 ネクロバレー
!
setname
0
x91
王家长眠之谷 ネクロバレー
!
setname
0
x92
纹章 メダリオン
!
setname
0
x92
纹章 メダリオン
...
...
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