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
7dcc1b1d
Commit
7dcc1b1d
authored
Sep 06, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into another
parents
e8698c3b
95b8cf6b
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
39 additions
and
5 deletions
+39
-5
.travis.yml
.travis.yml
+2
-2
appveyor.yml
appveyor.yml
+1
-1
gframe/duelclient.cpp
gframe/duelclient.cpp
+4
-0
gframe/replay_mode.cpp
gframe/replay_mode.cpp
+4
-0
gframe/single_duel.cpp
gframe/single_duel.cpp
+11
-0
gframe/single_mode.cpp
gframe/single_mode.cpp
+4
-0
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+11
-0
ocgcore
ocgcore
+1
-1
script
script
+1
-1
No files found.
.travis.yml
View file @
7dcc1b1d
...
@@ -4,7 +4,7 @@ os:
...
@@ -4,7 +4,7 @@ os:
-
osx
-
osx
sudo
:
required
sudo
:
required
dist
:
bionic
dist
:
bionic
osx_image
:
xcode
9.4
osx_image
:
xcode
10.3
addons
:
addons
:
ssh_known_hosts
:
ssh_known_hosts
:
-
github.com
-
github.com
...
@@ -86,7 +86,7 @@ before_deploy:
...
@@ -86,7 +86,7 @@ before_deploy:
7z a -mx9 -xr!.git* KoishiPro-$TRAVIS_OS_NAME-$TRAVIS_TAG.zip ygopro.app;
7z a -mx9 -xr!.git* KoishiPro-$TRAVIS_OS_NAME-$TRAVIS_TAG.zip ygopro.app;
fi
fi
-
curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://
cdn01.moecube.com
/images/ygopro-images-zh-CN.zip
-
curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://
s.my-card.in:444
/images/ygopro-images-zh-CN.zip
-
7z x -y -opics ygopro-images-zh-CN.zip > /dev/null
-
7z x -y -opics ygopro-images-zh-CN.zip > /dev/null
-
curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/moecube/ygopro-starter-pack/archive/master.zip
-
curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/moecube/ygopro-starter-pack/archive/master.zip
...
...
appveyor.yml
View file @
7dcc1b1d
...
@@ -59,7 +59,7 @@ after_build:
...
@@ -59,7 +59,7 @@ after_build:
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/purerosefallen/windbot/releases/download/latest/WindBot.7z ; exit 0"
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/purerosefallen/windbot/releases/download/latest/WindBot.7z ; exit 0"
-
7z x -y WindBot.7z
-
7z x -y WindBot.7z
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://
cdn01.moecube.com
/images/ygopro-images-zh-CN.zip ; exit 0"
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://
s.my-card.in:444
/images/ygopro-images-zh-CN.zip ; exit 0"
-
7z x -y -opics ygopro-images-zh-CN.zip
-
7z x -y -opics ygopro-images-zh-CN.zip
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/purerosefallen/update-koishipro/archive/master.zip ; exit 0"
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/purerosefallen/update-koishipro/archive/master.zip ; exit 0"
...
...
gframe/duelclient.cpp
View file @
7dcc1b1d
...
@@ -1045,6 +1045,10 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
...
@@ -1045,6 +1045,10 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
is_swapping = false;
is_swapping = false;
}
}
switch(mainGame->dInfo.curMsg) {
switch(mainGame->dInfo.curMsg) {
case MSG_RESET_TIME: {
pbuf += 3;
break;
}
case MSG_RETRY: {
case MSG_RETRY: {
if(last_successful_msg_length) {
if(last_successful_msg_length) {
char* p = last_successful_msg;
char* p = last_successful_msg;
...
...
gframe/replay_mode.cpp
View file @
7dcc1b1d
...
@@ -310,6 +310,10 @@ bool ReplayMode::ReplayAnalyze(char* msg, unsigned int len) {
...
@@ -310,6 +310,10 @@ bool ReplayMode::ReplayAnalyze(char* msg, unsigned int len) {
bool
pauseable
=
true
;
bool
pauseable
=
true
;
mainGame
->
dInfo
.
curMsg
=
BufferIO
::
ReadUInt8
(
pbuf
);
mainGame
->
dInfo
.
curMsg
=
BufferIO
::
ReadUInt8
(
pbuf
);
switch
(
mainGame
->
dInfo
.
curMsg
)
{
switch
(
mainGame
->
dInfo
.
curMsg
)
{
case
MSG_RESET_TIME
:
{
pbuf
+=
2
;
break
;
}
case
MSG_RETRY
:
{
case
MSG_RETRY
:
{
if
(
mainGame
->
dInfo
.
isReplaySkiping
)
{
if
(
mainGame
->
dInfo
.
isReplaySkiping
)
{
mainGame
->
dInfo
.
isReplaySkiping
=
false
;
mainGame
->
dInfo
.
isReplaySkiping
=
false
;
...
...
gframe/single_duel.cpp
View file @
7dcc1b1d
...
@@ -586,6 +586,17 @@ int SingleDuel::Analyze(char* msgbuffer, unsigned int len) {
...
@@ -586,6 +586,17 @@ int SingleDuel::Analyze(char* msgbuffer, unsigned int len) {
offset
=
pbuf
;
offset
=
pbuf
;
unsigned
char
engType
=
BufferIO
::
ReadUInt8
(
pbuf
);
unsigned
char
engType
=
BufferIO
::
ReadUInt8
(
pbuf
);
switch
(
engType
)
{
switch
(
engType
)
{
case
MSG_RESET_TIME
:
{
player
=
BufferIO
::
ReadInt8
(
pbuf
);
short
time
=
BufferIO
::
ReadInt16
(
pbuf
);
if
(
host_info
.
time_limit
)
{
if
(
time
)
time_limit
[
player
]
=
time
;
else
time_limit
[
player
]
=
host_info
.
time_limit
;
}
break
;
}
case
MSG_RETRY
:
{
case
MSG_RETRY
:
{
WaitforResponse
(
last_response
);
WaitforResponse
(
last_response
);
NetServer
::
SendBufferToPlayer
(
players
[
last_response
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
NetServer
::
SendBufferToPlayer
(
players
[
last_response
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
...
...
gframe/single_mode.cpp
View file @
7dcc1b1d
...
@@ -182,6 +182,10 @@ bool SingleMode::SinglePlayAnalyze(char* msg, unsigned int len) {
...
@@ -182,6 +182,10 @@ bool SingleMode::SinglePlayAnalyze(char* msg, unsigned int len) {
offset
=
pbuf
;
offset
=
pbuf
;
mainGame
->
dInfo
.
curMsg
=
BufferIO
::
ReadUInt8
(
pbuf
);
mainGame
->
dInfo
.
curMsg
=
BufferIO
::
ReadUInt8
(
pbuf
);
switch
(
mainGame
->
dInfo
.
curMsg
)
{
switch
(
mainGame
->
dInfo
.
curMsg
)
{
case
MSG_RESET_TIME
:
{
pbuf
+=
3
;
break
;
}
case
MSG_RETRY
:
{
case
MSG_RETRY
:
{
if
(
!
DuelClient
::
ClientAnalyze
(
offset
,
pbuf
-
offset
))
{
if
(
!
DuelClient
::
ClientAnalyze
(
offset
,
pbuf
-
offset
))
{
mainGame
->
singleSignal
.
Reset
();
mainGame
->
singleSignal
.
Reset
();
...
...
gframe/tag_duel.cpp
View file @
7dcc1b1d
...
@@ -550,6 +550,17 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
...
@@ -550,6 +550,17 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
offset
=
pbuf
;
offset
=
pbuf
;
unsigned
char
engType
=
BufferIO
::
ReadUInt8
(
pbuf
);
unsigned
char
engType
=
BufferIO
::
ReadUInt8
(
pbuf
);
switch
(
engType
)
{
switch
(
engType
)
{
case
MSG_RESET_TIME
:
{
player
=
BufferIO
::
ReadInt8
(
pbuf
);
short
time
=
BufferIO
::
ReadInt16
(
pbuf
);
if
(
host_info
.
time_limit
)
{
if
(
time
)
time_limit
[
player
]
=
time
;
else
time_limit
[
player
]
=
host_info
.
time_limit
;
}
break
;
}
case
MSG_RETRY
:
{
case
MSG_RETRY
:
{
WaitforResponse
(
last_response
);
WaitforResponse
(
last_response
);
NetServer
::
SendBufferToPlayer
(
cur_player
[
last_response
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
NetServer
::
SendBufferToPlayer
(
cur_player
[
last_response
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
...
...
ocgcore
@
1eedc8d1
Subproject commit
9895a5da2ee82f17ac898d8c495bde4f777e1484
Subproject commit
1eedc8d1b7e4b36f7a78431351238b330b723aad
script
@
df1137c1
Subproject commit
7cbcd346ace1c116d1e90e2d1d1e1e68e25ec98e
Subproject commit
df1137c1d9ca27697cc9be63da50191df629a158
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