progress
Some checks failed
Build and Test / puyopuyo (push) Failing after 26s
Build and Test / splatoon-testfire (push) Failing after 27s
Build and Test / minecraft-wiiu (push) Failing after 2m34s
Build and Test / fast-racing-neo (push) Failing after 2m36s
Build and Test / mario-tennis (push) Failing after 2m38s
Build and Test / splatoon (push) Failing after 2m38s
Build and Test / wii-u-chat (push) Failing after 5m25s
Build and Test / friends (push) Successful in 6m34s
Build and Test / super-mario-maker (push) Failing after 6m43s
Build and Test / sonic-transformed (push) Failing after 6m58s
Build and Test / wii-sports-club (push) Failing after 7m9s

This commit is contained in:
Maple Nebel 2026-07-13 23:47:15 +02:00
commit f1d16e40a1
36 changed files with 730 additions and 1392 deletions

View file

@ -10,6 +10,7 @@ chrono = "0.4.39"
bytemuck = { version = "1.25.0", features = ["derive"] }
md-5 = "0.11.0"
thiserror = "2.0.18"
nex-account = { version = "0.2.4", registry = "spbr" }
[features]
nx = []

View file

@ -1,4 +1,5 @@
use md5::{Digest, Md5};
use nex_account::{grpc::Pid, grpc_client};
use crate::PID;
@ -44,4 +45,17 @@ impl Account {
pub fn get_login_data(&self) -> (PID, [u8; 16]) {
(self.pid, self.nex_key)
}
pub async fn from_nexact(pid: PID, username: &str) -> Option<Self> {
let key: [u8; 16] = grpc_client()
.await
.ok()?
.get_nex_key_by_pid(Pid { pid })
.await
.ok()?
.into_inner()
.key
.try_into()
.ok()?;
Some(Self::new_raw_key(pid, username, key))
}
}