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
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
Commits
269bac60
Commit
269bac60
authored
May 31, 2024
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace unsigned int to uint32_t
parent
270ac63c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
gframe/network.h
gframe/network.h
+6
-6
No files found.
gframe/network.h
View file @
269bac60
...
@@ -19,7 +19,7 @@ namespace ygo {
...
@@ -19,7 +19,7 @@ namespace ygo {
constexpr
int
SIDEC_MAX
=
MAINC_MAX
;
constexpr
int
SIDEC_MAX
=
MAINC_MAX
;
struct
HostInfo
{
struct
HostInfo
{
u
nsigned
in
t
lflist
{};
u
int32_
t
lflist
{};
unsigned
char
rule
{};
unsigned
char
rule
{};
unsigned
char
mode
{};
unsigned
char
mode
{};
unsigned
char
duel_rule
{};
unsigned
char
duel_rule
{};
...
@@ -27,7 +27,7 @@ struct HostInfo {
...
@@ -27,7 +27,7 @@ struct HostInfo {
unsigned
char
no_shuffle_deck
{};
unsigned
char
no_shuffle_deck
{};
// byte padding[3]
// byte padding[3]
u
nsigned
in
t
start_lp
{};
u
int32_
t
start_lp
{};
unsigned
char
start_hand
{};
unsigned
char
start_hand
{};
unsigned
char
draw_count
{};
unsigned
char
draw_count
{};
uint16_t
time_limit
{};
uint16_t
time_limit
{};
...
@@ -41,7 +41,7 @@ struct HostPacket {
...
@@ -41,7 +41,7 @@ struct HostPacket {
uint16_t
port
;
uint16_t
port
;
// byte padding[2]
// byte padding[2]
u
nsigned
in
t
ipaddr
;
u
int32_
t
ipaddr
;
uint16_t
name
[
20
];
uint16_t
name
[
20
];
HostInfo
host
;
HostInfo
host
;
};
};
...
@@ -84,7 +84,7 @@ struct CTOS_JoinGame {
...
@@ -84,7 +84,7 @@ struct CTOS_JoinGame {
uint16_t
version
;
uint16_t
version
;
// byte padding[2]
// byte padding[2]
u
nsigned
in
t
gameid
;
u
int32_
t
gameid
;
uint16_t
pass
[
20
];
uint16_t
pass
[
20
];
};
};
check_trivially_copyable
(
CTOS_JoinGame
);
check_trivially_copyable
(
CTOS_JoinGame
);
...
@@ -101,7 +101,7 @@ struct STOC_ErrorMsg {
...
@@ -101,7 +101,7 @@ struct STOC_ErrorMsg {
unsigned
char
msg
;
unsigned
char
msg
;
// byte padding[3]
// byte padding[3]
u
nsigned
in
t
code
;
u
int32_
t
code
;
};
};
check_trivially_copyable
(
STOC_ErrorMsg
);
check_trivially_copyable
(
STOC_ErrorMsg
);
static_assert
(
sizeof
(
STOC_ErrorMsg
)
==
8
,
"size mismatch: STOC_ErrorMsg"
);
static_assert
(
sizeof
(
STOC_ErrorMsg
)
==
8
,
"size mismatch: STOC_ErrorMsg"
);
...
@@ -114,7 +114,7 @@ check_trivially_copyable(STOC_HandResult);
...
@@ -114,7 +114,7 @@ check_trivially_copyable(STOC_HandResult);
static_assert
(
sizeof
(
STOC_HandResult
)
==
2
,
"size mismatch: STOC_HandResult"
);
static_assert
(
sizeof
(
STOC_HandResult
)
==
2
,
"size mismatch: STOC_HandResult"
);
struct
STOC_CreateGame
{
struct
STOC_CreateGame
{
u
nsigned
in
t
gameid
;
u
int32_
t
gameid
;
};
};
check_trivially_copyable
(
STOC_CreateGame
);
check_trivially_copyable
(
STOC_CreateGame
);
static_assert
(
sizeof
(
STOC_CreateGame
)
==
4
,
"size mismatch: STOC_CreateGame"
);
static_assert
(
sizeof
(
STOC_CreateGame
)
==
4
,
"size mismatch: STOC_CreateGame"
);
...
...
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