forked from spacebar/rust-nex
bypass participation check for splatoon on gamemode 12
This commit is contained in:
parent
1da5f09bc8
commit
1b9fcedfaa
2 changed files with 9 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(());
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue