bypass participation check for splatoon on gamemode 12

This commit is contained in:
Maple Nebel 2026-05-31 13:25:31 +02:00
commit 1b9fcedfaa
2 changed files with 9 additions and 2 deletions

View file

@ -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(

View file

@ -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(());
};