fix auth and make console use no response version of message delivery
Some checks failed
Build and Test / wii-sports-club (push) Failing after 3m8s
Build and Test / mario-tennis (push) Failing after 3m9s
Build and Test / super-mario-maker (push) Failing after 3m12s
Build and Test / splatoon-testfire (push) Failing after 4m0s
Build and Test / wii-u-chat (push) Failing after 4m3s
Build and Test / splatoon (push) Failing after 4m3s
Build and Test / puyopuyo (push) Failing after 4m3s
Build and Test / sonic-transformed (push) Failing after 4m8s
Build and Test / fast-racing-neo (push) Failing after 4m13s
Build and Test / minecraft-wiiu (push) Has been cancelled
Build and Test / friends (push) Has been cancelled

This commit is contained in:
Maple Nebel 2026-06-20 01:28:15 +02:00
commit 31ba751142
3 changed files with 18 additions and 3 deletions

2
.cargo/config.toml Normal file
View file

@ -0,0 +1,2 @@
[registries]
spbr = { index = "sparse+https://crates.spbr.net/api/v1/crates/" }

View file

@ -1,6 +1,7 @@
use crate::define_rmc_proto;
use crate::rmc::protocols::message_delivery::{
MessageDelivery, RawMessageDelivery, RawMessageDeliveryInfo, RemoteMessageDelivery,
MessageDeliveryNoResponse, RawMessageDeliveryNoResponse, RawMessageDeliveryNoResponseInfo,
RemoteMessageDeliveryNoResponse,
};
use crate::rmc::protocols::nat_traversal::{
NatTraversalConsole, RawNatTraversalConsole, RawNatTraversalConsoleInfo,
@ -14,7 +15,7 @@ define_rmc_proto!(
proto Console{
Notification,
NatTraversalConsole,
MessageDelivery
MessageDeliveryNoResponse
}
);
/*

View file

@ -1,6 +1,7 @@
use crate::rmc::structures::connection_data::{ConnectionData, ConnectionDataOld};
use crate::rmc::structures::data::Data;
use cfg_if::cfg_if;
use macros::{method_id, rmc_proto};
use macros::{RmcSerialize, method_id, rmc_proto};
use rnex_core::PID;
use rnex_core::rmc::response::ErrorCode;
use rnex_core::rmc::structures::any::Any;
@ -56,3 +57,14 @@ pub trait Auth {
// `LoginWithContext` is left out here because we don't need it right now and versioning still
// needs to be figured out
}
#[derive(RmcSerialize)]
#[rmc_struct(0)]
struct AuthenticationInfo {
#[extends]
pub data: Data,
pub auth_token: String,
pub ngs_version: u32,
pub auth_token_type: u8,
pub server_version: u32,
}