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

@ -15,6 +15,7 @@ splatoon:
features: features:
- prudpv1 - prudpv1
- v3-8-15 - v3-8-15
- splatoon
settings: settings:
AUTH_REPORT_VERSION: "branch:origin/project/wup-agmj build:3_8_15_2004_0" AUTH_REPORT_VERSION: "branch:origin/project/wup-agmj build:3_8_15_2004_0"
RNEX_VIRTUAL_PORT_INSECURE: "1:10" RNEX_VIRTUAL_PORT_INSECURE: "1:10"

View file

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

View file

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