Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
Commits
6be8c6c2
Commit
6be8c6c2
authored
Nov 29, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finish
parent
12553ee7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
gframe/duelclient.cpp
gframe/duelclient.cpp
+14
-14
No files found.
gframe/duelclient.cpp
View file @
6be8c6c2
...
@@ -365,32 +365,32 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
...
@@ -365,32 +365,32 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
mainGame
->
lstHostList
->
clear
();
mainGame
->
lstHostList
->
clear
();
hosts_srvpro
.
clear
();
hosts_srvpro
.
clear
();
unsigned
short
count
=
BufferIO
::
ReadUInt16
(
pdata
);
unsigned
short
count
=
BufferIO
::
ReadUInt16
(
pdata
);
unsigned
short
temp1
[
20
];
char
temp1
[
64
];
unsigned
short
temp2
[
41
];
char
temp2
[
128
];
for
(
unsigned
short
i
=
0
;
i
<
count
;
++
i
)
{
for
(
unsigned
short
i
=
0
;
i
<
count
;
++
i
)
{
wchar_t
roomname
[
20
];
wchar_t
roomname
[
32
];
wchar_t
player1
[
41
];
wchar_t
player1
[
64
];
wchar_t
player2
[
41
];
wchar_t
player2
[
64
];
wchar_t
hoststr
[
1024
];
wchar_t
hoststr
[
1024
];
memcpy
(
temp1
,
pdata
,
40
);
memcpy
(
temp1
,
pdata
,
64
);
pdata
+=
40
;
pdata
+=
64
;
BufferIO
::
CopyWStr
(
roomname
,
temp1
,
20
);
BufferIO
::
DecodeUTF8
(
temp1
,
roomname
);
unsigned
char
room_status
=
BufferIO
::
ReadUInt8
(
pdata
);
unsigned
char
room_status
=
BufferIO
::
ReadUInt8
(
pdata
);
char
room_duel_count
=
BufferIO
::
ReadInt8
(
pdata
);
char
room_duel_count
=
BufferIO
::
ReadInt8
(
pdata
);
char
room_turn_count
=
BufferIO
::
ReadInt8
(
pdata
);
char
room_turn_count
=
BufferIO
::
ReadInt8
(
pdata
);
memcpy
(
temp2
,
pdata
,
82
);
memcpy
(
temp2
,
pdata
,
128
);
pdata
+=
82
;
pdata
+=
128
;
BufferIO
::
CopyWStr
(
player1
,
temp2
,
4
1
);
BufferIO
::
DecodeUTF8
(
temp2
,
player
1
);
char
player1_score
=
BufferIO
::
ReadInt8
(
pdata
);
char
player1_score
=
BufferIO
::
ReadInt8
(
pdata
);
int
player1_lp
=
BufferIO
::
ReadInt32
(
pdata
);
int
player1_lp
=
BufferIO
::
ReadInt32
(
pdata
);
memcpy
(
temp2
,
pdata
,
82
);
memcpy
(
temp2
,
pdata
,
128
);
pdata
+=
82
;
pdata
+=
128
;
BufferIO
::
CopyWStr
(
player2
,
temp2
,
41
);
BufferIO
::
DecodeUTF8
(
temp2
,
player2
);
char
player2_score
=
BufferIO
::
ReadInt8
(
pdata
);
char
player2_score
=
BufferIO
::
ReadInt8
(
pdata
);
int
player2_lp
=
BufferIO
::
ReadInt32
(
pdata
);
int
player2_lp
=
BufferIO
::
ReadInt32
(
pdata
);
...
...
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