From be9898d3af8c28d3e7ad149d20b3ef9f8bc46162 Mon Sep 17 00:00:00 2001 From: red binder Date: Tue, 23 Jun 2026 12:40:52 +0200 Subject: [PATCH] stub SyncFriend --- rnex-core/src/nex/friends_handler.rs | 2 +- rnex-core/src/rmc/protocols/friends_3ds.rs | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/rnex-core/src/nex/friends_handler.rs b/rnex-core/src/nex/friends_handler.rs index 8c9c633..d17d64c 100644 --- a/rnex-core/src/nex/friends_handler.rs +++ b/rnex-core/src/nex/friends_handler.rs @@ -193,7 +193,7 @@ impl Friends3DS for FriendsUser { } async fn sync_friend(&self, unk1: u64, unk2: Vec, unk3: Vec) -> Result, ErrorCode> { - Err(ErrorCode::Core_NotImplemented) + Ok(vec![]) } async fn update_presence(&self, nintendo_presence: NintendoPresence, unk: bool) -> Result<(), ErrorCode> { diff --git a/rnex-core/src/rmc/protocols/friends_3ds.rs b/rnex-core/src/rmc/protocols/friends_3ds.rs index aaa7af0..1945764 100644 --- a/rnex-core/src/rmc/protocols/friends_3ds.rs +++ b/rnex-core/src/rmc/protocols/friends_3ds.rs @@ -24,9 +24,9 @@ pub struct MyProfile { pub struct Mii { #[extends] pub data: Data, - pub unk1: String, - pub unk2: bool, - pub unk3: u8, + pub name: String, + pub profanity: bool, + pub char_set: u8, // 0 is JPN/USA/EUR, 1 is CHN, 2 is KOR and 3 is TWN pub mii_data: Vec, } @@ -62,7 +62,7 @@ pub struct PlayedGame { #[derive(RmcSerialize)] #[rmc_struct(0)] pub struct FriendInfo { - pub unk1: u32, + pub pid: u32, pub unk2: KerberosDateTime, } @@ -91,9 +91,9 @@ pub struct FriendMiiList { pub struct FriendRelationship { #[extends] pub data: Data, - pub unk1: u32, - pub unk2: u64, - pub unk3: u8, + pub pid: u32, + pub local_friend_code: u64, + pub relationship_type: u8, } #[derive(RmcSerialize)] @@ -117,7 +117,7 @@ pub struct NintendoPresence { pub struct FriendPresence { #[extends] pub data: Data, - pub unk: u32, + pub pid: u32, pub presence: NintendoPresence, } #[derive(RmcSerialize)]