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
YGOPRO-520DIY
ygopro
Commits
dee4ccea
Commit
dee4ccea
authored
Feb 06, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adapt MSG_UPDATE_CARD in game msg
parent
4dd592d4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
1 deletion
+35
-1
gframe/replay_mode.cpp
gframe/replay_mode.cpp
+7
-0
gframe/single_duel.cpp
gframe/single_duel.cpp
+10
-0
gframe/single_mode.cpp
gframe/single_mode.cpp
+7
-0
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+10
-0
ocgcore
ocgcore
+1
-1
No files found.
gframe/replay_mode.cpp
View file @
dee4ccea
...
...
@@ -338,6 +338,13 @@ bool ReplayMode::ReplayAnalyze(unsigned char* msg, unsigned int len) {
pbuf
+=
3
;
break
;
}
case
MSG_UPDATE_CARD
:
{
pbuf
+=
3
;
const
int
clen
=
BufferIO
::
ReadInt32
(
pbuf
);
pbuf
+=
(
clen
-
4
);
DuelClient
::
ClientAnalyze
(
offset
,
pbuf
-
offset
);
break
;
}
case
MSG_RETRY
:
{
if
(
mainGame
->
dInfo
.
isReplaySkiping
)
{
mainGame
->
dInfo
.
isReplaySkiping
=
false
;
...
...
gframe/single_duel.cpp
View file @
dee4ccea
...
...
@@ -596,6 +596,16 @@ int SingleDuel::Analyze(unsigned char* msgbuffer, unsigned int len) {
}
break
;
}
case
MSG_UPDATE_CARD
:
{
auto
controller
=
BufferIO
::
ReadUInt8
(
pbuf
);
auto
location
=
BufferIO
::
ReadUInt8
(
pbuf
);
auto
sequence
=
BufferIO
::
ReadUInt8
(
pbuf
);
auto
clen
=
BufferIO
::
ReadInt32
(
pbuf
);
auto
query_flag
=
BufferIO
::
ReadUInt32
(
pbuf
);
pbuf
+=
(
clen
-
8
);
RefreshSingle
(
controller
,
location
,
sequence
,
query_flag
);
break
;
}
case
MSG_RETRY
:
{
WaitforResponse
(
last_response
);
NetServer
::
SendBufferToPlayer
(
players
[
last_response
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
...
...
gframe/single_mode.cpp
View file @
dee4ccea
...
...
@@ -194,6 +194,13 @@ bool SingleMode::SinglePlayAnalyze(unsigned char* msg, unsigned int len) {
pbuf
+=
3
;
break
;
}
case
MSG_UPDATE_CARD
:
{
pbuf
+=
3
;
const
int
clen
=
BufferIO
::
ReadInt32
(
pbuf
);
pbuf
+=
(
clen
-
4
);
DuelClient
::
ClientAnalyze
(
offset
,
pbuf
-
offset
);
break
;
}
case
MSG_RETRY
:
{
if
(
!
DuelClient
::
ClientAnalyze
(
offset
,
pbuf
-
offset
))
{
mainGame
->
singleSignal
.
Reset
();
...
...
gframe/tag_duel.cpp
View file @
dee4ccea
...
...
@@ -558,6 +558,16 @@ int TagDuel::Analyze(unsigned char* msgbuffer, unsigned int len) {
}
break
;
}
case
MSG_UPDATE_CARD
:
{
auto
controller
=
BufferIO
::
ReadUInt8
(
pbuf
);
auto
location
=
BufferIO
::
ReadUInt8
(
pbuf
);
auto
sequence
=
BufferIO
::
ReadUInt8
(
pbuf
);
auto
clen
=
BufferIO
::
ReadInt32
(
pbuf
);
auto
query_flag
=
BufferIO
::
ReadUInt32
(
pbuf
);
pbuf
+=
(
clen
-
8
);
RefreshSingle
(
controller
,
location
,
sequence
,
query_flag
);
break
;
}
case
MSG_RETRY
:
{
WaitforResponse
(
last_response
);
NetServer
::
SendBufferToPlayer
(
cur_player
[
last_response
],
STOC_GAME_MSG
,
offset
,
pbuf
-
offset
);
...
...
ocgcore
@
5734eb11
Subproject commit
2a688aeb72bced1dffa60db1e3c802041f8c59e2
Subproject commit
5734eb11b8a6cd5f5256a414f78be365b44f6a68
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