Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile-Cn-Ko-En
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
fallenstardust
YGOMobile-Cn-Ko-En
Commits
1a208e9f
Commit
1a208e9f
authored
Dec 21, 2018
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8951664b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
30 deletions
+6
-30
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+1
-25
Classes/ocgcore/operations.cpp
Classes/ocgcore/operations.cpp
+4
-4
mobile/build.gradle
mobile/build.gradle
+1
-1
No files found.
Classes/gframe/game.cpp
View file @
1a208e9f
...
...
@@ -1301,18 +1301,6 @@ void Game::RefreshDeck(irr::gui::IGUIComboBox* cbDeck) {
}
void
Game
::
RefreshReplay
()
{
lstReplayList
->
clear
();
#ifdef _WIN32
WIN32_FIND_DATAW
fdataw
;
HANDLE
fh
=
FindFirstFileW
(
L"./replay/*.yrp"
,
&
fdataw
);
if
(
fh
==
INVALID_HANDLE_VALUE
)
return
;
do
{
if
(
!
(
fdataw
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
&&
Replay
::
CheckReplay
(
fdataw
.
cFileName
))
{
lstReplayList
->
addItem
(
fdataw
.
cFileName
);
}
}
while
(
FindNextFileW
(
fh
,
&
fdataw
));
FindClose
(
fh
);
#else
DIR
*
dir
;
struct
dirent
*
dirp
;
if
((
dir
=
opendir
(
"./replay/"
))
==
NULL
)
...
...
@@ -1327,21 +1315,10 @@ void Game::RefreshReplay() {
lstReplayList
->
addItem
(
wname
);
}
closedir
(
dir
);
#endif
}
void
Game
::
RefreshSingleplay
()
{
lstSinglePlayList
->
clear
();
#ifdef _WIN32
WIN32_FIND_DATAW
fdataw
;
HANDLE
fh
=
FindFirstFileW
(
L"./single/*.lua"
,
&
fdataw
);
if
(
fh
==
INVALID_HANDLE_VALUE
)
return
;
do
{
if
(
!
(
fdataw
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
))
lstSinglePlayList
->
addItem
(
fdataw
.
cFileName
);
}
while
(
FindNextFileW
(
fh
,
&
fdataw
));
FindClose
(
fh
);
#else
stSinglePlayInfo
->
setText
(
L""
);
DIR
*
dir
;
struct
dirent
*
dirp
;
if
((
dir
=
opendir
(
"./single/"
))
==
NULL
)
...
...
@@ -1355,7 +1332,6 @@ void Game::RefreshSingleplay() {
lstSinglePlayList
->
addItem
(
wname
);
}
closedir
(
dir
);
#endif
}
void
Game
::
RefreshBot
()
{
if
(
!
gameConf
.
enable_bot_mode
)
...
...
Classes/ocgcore/operations.cpp
View file @
1a208e9f
...
...
@@ -4560,7 +4560,7 @@ int32 field::operation_replace(uint16 step, effect* replace_effect, group* targe
target
->
current
.
reason_player
=
target
->
temp
.
reason_player
;
if
(
is_destroy
)
core
.
destroy_canceled
.
insert
(
target
);
replace_effect
->
dec_count
();
replace_effect
->
dec_count
(
replace_effect
->
get_handler_player
()
);
}
else
core
.
units
.
begin
()
->
step
=
2
;
return
FALSE
;
...
...
@@ -4627,7 +4627,7 @@ int32 field::operation_replace(uint16 step, effect* replace_effect, group* targe
targets
->
container
.
erase
(
rm
);
}
}
replace_effect
->
dec_count
();
replace_effect
->
dec_count
(
replace_effect
->
get_handler_player
()
);
}
else
core
.
units
.
begin
()
->
step
=
7
;
return
FALSE
;
...
...
@@ -4689,7 +4689,7 @@ int32 field::operation_replace(uint16 step, effect* replace_effect, group* targe
target
->
current
.
reason_player
=
target
->
temp
.
reason_player
;
if
(
is_destroy
)
core
.
destroy_canceled
.
insert
(
target
);
replace_effect
->
dec_count
();
replace_effect
->
dec_count
(
replace_effect
->
get_handler_player
()
);
core
.
desrep_chain
.
push_back
(
core
.
continuous_chain
.
front
());
}
core
.
continuous_chain
.
pop_front
();
...
...
@@ -4738,7 +4738,7 @@ int32 field::operation_replace(uint16 step, effect* replace_effect, group* targe
targets
->
container
.
erase
(
rm
);
}
}
replace_effect
->
dec_count
();
replace_effect
->
dec_count
(
replace_effect
->
get_handler_player
()
);
core
.
desrep_chain
.
push_back
(
core
.
continuous_chain
.
front
());
}
core
.
continuous_chain
.
pop_front
();
...
...
mobile/build.gradle
View file @
1a208e9f
...
...
@@ -8,7 +8,7 @@ android {
applicationId
"cn.garymb.ygomobile"
minSdkVersion
16
targetSdkVersion
28
versionCode
3310012
15
versionCode
3310012
21
versionName
"3.3.10"
flavorDimensions
"versionCode"
vectorDrawables
.
useSupportLibrary
=
true
...
...
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