aboutsummaryrefslogtreecommitdiff
path: root/core/src/pad_data
diff options
context:
space:
mode:
author1992414357@qq.com <1992414357@qq.com>2025-05-28 09:11:31 +0800
committer1992414357@qq.com <1992414357@qq.com>2025-05-28 09:11:31 +0800
commitc0244a9d6f657934313e03f67a4b9fa9d93d34b7 (patch)
tree2da30c3984f5182e1bd3369de148abaa05afcbf8 /core/src/pad_data
parentadc42fdf2050e77de50952bc8629684f1b3cf0ce (diff)
.
Diffstat (limited to 'core/src/pad_data')
-rw-r--r--core/src/pad_data/game_profile.rs1
-rw-r--r--core/src/pad_data/pad_player_info.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/core/src/pad_data/game_profile.rs b/core/src/pad_data/game_profile.rs
index 8d6e279..cd2a175 100644
--- a/core/src/pad_data/game_profile.rs
+++ b/core/src/pad_data/game_profile.rs
@@ -3,6 +3,7 @@ pub mod game_profile {
use bincode::{Decode, Encode};
use serde::{Deserialize, Serialize};
+ #[repr(C)]
#[derive(Encode, Decode, Serialize, Deserialize, PartialEq, Debug)]
pub struct GameProfile {
diff --git a/core/src/pad_data/pad_player_info.rs b/core/src/pad_data/pad_player_info.rs
index ab0f6fd..1c8b7e0 100644
--- a/core/src/pad_data/pad_player_info.rs
+++ b/core/src/pad_data/pad_player_info.rs
@@ -7,6 +7,7 @@ pub mod nogamepads_player_info {
pub const ACCOUNT_HASH_SALT : &str = "Mr.Weicao";
+ #[repr(C)]
#[derive(Encode, Decode,
Serialize, Deserialize,
PartialEq, Debug)]