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
01787861
Commit
01787861
authored
Jun 08, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
010d1008
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
gframe/duelclient.cpp
gframe/duelclient.cpp
+1
-0
gframe/single_mode.cpp
gframe/single_mode.cpp
+3
-3
No files found.
gframe/duelclient.cpp
View file @
01787861
...
...
@@ -2630,6 +2630,7 @@ bool DuelClient::ClientAnalyze(unsigned char* msg, int len) {
ClientCard
*
pcard
=
mainGame
->
dField
.
GetCard
(
player
,
LOCATION_DECK
,
mainGame
->
dField
.
deck
[
player
].
size
()
-
1
-
seq
);
pcard
->
SetCode
(
code
&
0x7fffffff
);
bool
rev
=
(
code
&
0x80000000
)
!=
0
;
printf
(
"Deck top card: %d, is_reversed: %d
\n
"
,
code
&
0x7fffffff
,
rev
?
1
:
0
);
if
(
pcard
->
is_reversed
!=
rev
)
{
pcard
->
is_reversed
=
rev
;
mainGame
->
dField
.
MoveCard
(
pcard
,
5
);
...
...
gframe/single_mode.cpp
View file @
01787861
...
...
@@ -761,7 +761,7 @@ bool SingleMode::SinglePlayAnalyze(unsigned char* msg, unsigned int len) {
break
;
}
case
MSG_AI_NAME
:
{
char
namebuf
[
SIZE_AI_NAME
]{};
char
namebuf
[
128
]{};
wchar_t
wname
[
20
]{};
int
name_len
=
buffer_read
<
uint16_t
>
(
pbuf
);
if
(
name_len
+
1
<=
(
int
)
sizeof
namebuf
)
{
...
...
@@ -774,8 +774,8 @@ bool SingleMode::SinglePlayAnalyze(unsigned char* msg, unsigned int len) {
break
;
}
case
MSG_SHOW_HINT
:
{
char
msgbuf
[
SIZE_HINT_MSG
]{};
wchar_t
msg
[
SIZE_HINT_MSG
]{};
char
msgbuf
[
1024
]{};
wchar_t
msg
[
1024
]{};
int
msg_len
=
buffer_read
<
uint16_t
>
(
pbuf
);
if
(
msg_len
+
1
<=
(
int
)
sizeof
msgbuf
)
{
std
::
memcpy
(
msgbuf
,
pbuf
,
msg_len
);
...
...
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