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
bce1a375
Commit
bce1a375
authored
Oct 02, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into server
parents
36b8f1c7
70637886
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
gframe/duelclient.cpp
gframe/duelclient.cpp
+2
-2
gframe/duelclient.h
gframe/duelclient.h
+2
-2
No files found.
gframe/duelclient.cpp
View file @
bce1a375
...
@@ -263,7 +263,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
...
@@ -263,7 +263,7 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
char
*
pdata
=
data
;
char
*
pdata
=
data
;
unsigned
char
pktType
=
BufferIO
::
ReadUInt8
(
pdata
);
unsigned
char
pktType
=
BufferIO
::
ReadUInt8
(
pdata
);
#ifdef YGOPRO_MESSAGE_DEBUG
#ifdef YGOPRO_MESSAGE_DEBUG
printf
(
"STOC: %d Length: %d
\n
"
,
pktType
,
len
);
printf
(
"STOC: %d Length: %
l
d
\n
"
,
pktType
,
len
);
#endif
#endif
switch
(
pktType
)
{
switch
(
pktType
)
{
case
STOC_GAME_MSG
:
{
case
STOC_GAME_MSG
:
{
...
@@ -988,7 +988,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
...
@@ -988,7 +988,7 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
wchar_t
textBuffer
[
256
];
wchar_t
textBuffer
[
256
];
mainGame
->
dInfo
.
curMsg
=
BufferIO
::
ReadUInt8
(
pbuf
);
mainGame
->
dInfo
.
curMsg
=
BufferIO
::
ReadUInt8
(
pbuf
);
#ifdef YGOPRO_MESSAGE_DEBUG
#ifdef YGOPRO_MESSAGE_DEBUG
printf
(
"MSG: %d Length: %d
\n
"
,
mainGame
->
dInfo
.
curMsg
,
len
);
printf
(
"MSG: %d Length: %
l
d
\n
"
,
mainGame
->
dInfo
.
curMsg
,
len
);
#endif
#endif
if
(
mainGame
->
dInfo
.
curMsg
!=
MSG_RETRY
)
{
if
(
mainGame
->
dInfo
.
curMsg
!=
MSG_RETRY
)
{
memcpy
(
last_successful_msg
,
msg
,
len
);
memcpy
(
last_successful_msg
,
msg
,
len
);
...
...
gframe/duelclient.h
View file @
bce1a375
...
@@ -71,7 +71,7 @@ public:
...
@@ -71,7 +71,7 @@ public:
BufferIO
::
WriteInt8
(
p
,
proto
);
BufferIO
::
WriteInt8
(
p
,
proto
);
memcpy
(
p
,
&
st
,
sizeof
(
ST
));
memcpy
(
p
,
&
st
,
sizeof
(
ST
));
#ifdef YGOPRO_MESSAGE_DEBUG
#ifdef YGOPRO_MESSAGE_DEBUG
printf
(
"CTOS: %d Length: %d
\n
"
,
proto
,
sizeof
(
ST
));
printf
(
"CTOS: %d Length: %
l
d
\n
"
,
proto
,
sizeof
(
ST
));
#endif
#endif
bufferevent_write
(
client_bev
,
duel_client_write
,
sizeof
(
ST
)
+
3
);
bufferevent_write
(
client_bev
,
duel_client_write
,
sizeof
(
ST
)
+
3
);
}
}
...
@@ -81,7 +81,7 @@ public:
...
@@ -81,7 +81,7 @@ public:
BufferIO
::
WriteInt8
(
p
,
proto
);
BufferIO
::
WriteInt8
(
p
,
proto
);
memcpy
(
p
,
buffer
,
len
);
memcpy
(
p
,
buffer
,
len
);
#ifdef YGOPRO_MESSAGE_DEBUG
#ifdef YGOPRO_MESSAGE_DEBUG
printf
(
"CTOS: %d Length: %d
\n
"
,
proto
,
len
);
printf
(
"CTOS: %d Length: %
l
d
\n
"
,
proto
,
len
);
#endif
#endif
bufferevent_write
(
client_bev
,
duel_client_write
,
len
+
3
);
bufferevent_write
(
client_bev
,
duel_client_write
,
len
+
3
);
}
}
...
...
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