From 1b9fcedfaa4e9b53825d69ca2907d756943f7983 Mon Sep 17 00:00:00 2001 From: Maple Nebel Date: Sun, 31 May 2026 13:25:31 +0200 Subject: [PATCH] bypass participation check for splatoon on gamemode 12 --- rnex-core/src/nex/matchmake.rs | 10 +++++++++- rnex-core/src/nex/user.rs | 1 - 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/rnex-core/src/nex/matchmake.rs b/rnex-core/src/nex/matchmake.rs index 45e0aba..4e06e9d 100644 --- a/rnex-core/src/nex/matchmake.rs +++ b/rnex-core/src/nex/matchmake.rs @@ -324,7 +324,15 @@ impl ExtendedMatchmakeSession { } #[inline] pub fn is_joinable(&self) -> bool { - self.is_reachable() && self.session.open_participation + #[cfg(not(feature = "splatoon"))] + let is_open = self.session.open_participation; + #[cfg(feature = "splatoon")] + let is_open = if self.session.gamemode == 11 { + true + } else { + self.session.open_participation + }; + self.is_reachable() && is_open } pub fn matches_criteria( diff --git a/rnex-core/src/nex/user.rs b/rnex-core/src/nex/user.rs index 4ab0a7b..7fe37c1 100644 --- a/rnex-core/src/nex/user.rs +++ b/rnex-core/src/nex/user.rs @@ -149,7 +149,6 @@ impl Secure for User { url.options.iter().any(|o| o == target_addr) && url.options.iter().any(|o| o == target_port) }) else { - //return Err(ErrorCode::Core_InvalidArgument); //probably internal ip return Ok(()); };