make attrib matching game specific
Some checks failed
Build and Test / wii-u-chat (push) Successful in 4m18s
Build and Test / splatoon (push) Successful in 4m17s
Build and Test / friends (push) Successful in 4m19s
Build and Test / super-mario-maker (push) Has been cancelled

This commit is contained in:
Maple Nebel 2026-04-29 00:03:53 +02:00
commit 7565501c19
3 changed files with 30 additions and 25 deletions

View file

@ -51,6 +51,7 @@ v3-5-0 = ["v3-4-0"]
v3-8-15 = ["v3-5-0"]
v4-3-11 = ["v3-8-15"]
nx = ["big_pid"]
splatoon = []
datastore = ["database-support", "v3-8-15", "dep:aws-sdk-s3", "dep:aws-config"]
database-support = ["dep:sqlx"]

View file

@ -397,32 +397,35 @@ impl ExtendedMatchmakeSession {
return Ok(false);
}
if search_criteria
.attribs
.get(0)
.map(|str| str.parse().ok())
.flatten()
!= self.session.attributes.get(0).map(|v| *v)
#[cfg(feature = "splatoon")]
{
return Ok(false);
}
if search_criteria
.attribs
.get(2)
.map(|str| str.parse().ok())
.flatten()
!= self.session.attributes.get(2).map(|v| *v)
{
return Ok(false);
}
if search_criteria
.attribs
.get(3)
.map(|str| str.parse().ok())
.flatten()
!= self.session.attributes.get(3).map(|v| *v)
{
return Ok(false);
if search_criteria
.attribs
.get(0)
.map(|str| str.parse().ok())
.flatten()
!= self.session.attributes.get(0).map(|v| *v)
{
return Ok(false);
}
if search_criteria
.attribs
.get(2)
.map(|str| str.parse().ok())
.flatten()
!= self.session.attributes.get(2).map(|v| *v)
{
return Ok(false);
}
if search_criteria
.attribs
.get(3)
.map(|str| str.parse().ok())
.flatten()
!= self.session.attributes.get(3).map(|v| *v)
{
return Ok(false);
}
}
Ok(true)