From dfc12ca3d823773a8aa282c2aecedf501fec5e57 Mon Sep 17 00:00:00 2001 From: red binder Date: Tue, 23 Jun 2026 14:39:42 +0200 Subject: [PATCH] preliminary ACNL support --- editions.yaml | 12 ++++++++++++ rnex-core/src/nex/user.rs | 9 +++++++++ rnex-core/src/rmc/protocols/util.rs | 2 ++ 3 files changed, 23 insertions(+) diff --git a/editions.yaml b/editions.yaml index 38bd5ba..df2ef8a 100644 --- a/editions.yaml +++ b/editions.yaml @@ -9,6 +9,18 @@ sonic-transformed: RNEX_VIRTUAL_PORT_SECURE: "1:10" RNEX_DEFAULT_PORT: 10000 RNEX_ACCESS_KEY: "b26a3421" +ac-new-leaf: + include-in-checkall: true + features: + - prudpv1 + - datastore + - v3-10-22 + settings: + AUTH_REPORT_VERSION: "branch:origin/release/ngs/3.10.x.200x build:3_10_22_2006_0" + RNEX_VIRTUAL_PORT_INSECURE: "1:10" + RNEX_VIRTUAL_PORT_SECURE: "1:10" + RNEX_DEFAULT_PORT: 10000 + RNEX_ACCESS_KEY: "d6f08b40" wii-sports-club: include-in-checkall: true features: diff --git a/rnex-core/src/nex/user.rs b/rnex-core/src/nex/user.rs index 760532b..029b856 100644 --- a/rnex-core/src/nex/user.rs +++ b/rnex-core/src/nex/user.rs @@ -813,6 +813,15 @@ impl Utility for User { async fn acquire_nex_unique_id(&self) -> Result { return Ok(rand::random()); } + + async fn get_integer_settings(&self, index: u32) -> Result, ErrorCode> { + Ok(vec![ + (0, 1), + (1, 2), + (2, 0), + (3, 4) + ]) + } } impl Ranking for User { diff --git a/rnex-core/src/rmc/protocols/util.rs b/rnex-core/src/rmc/protocols/util.rs index a89c79b..3d0c2c1 100644 --- a/rnex-core/src/rmc/protocols/util.rs +++ b/rnex-core/src/rmc/protocols/util.rs @@ -6,4 +6,6 @@ use rnex_core::rmc::response::ErrorCode; pub trait Utility { #[method_id(1)] async fn acquire_nex_unique_id(&self) -> Result; + #[method_id(7)] + async fn get_integer_settings(&self, index: u32) -> Result, ErrorCode>; }