Add Animal Crossing: New Horizons Rich Presence

Adds rich presence for ACNH, using the island name. There's no other useable data I could find for it, this works anyways.
This commit is contained in:
Mabel 2026-05-19 22:51:36 -07:00 committed by sh0inx
parent 7f27aad88f
commit f780a08ab6
2 changed files with 14 additions and 0 deletions

View file

@ -1080,5 +1080,13 @@ namespace Ryujinx.Ava.Systems.PlayReport
return $"Looking after {"Mii".ToQuantity(miiCount)}, with an island level of {fountainLevel}";
}
private static FormattedValue AnimalCrossingNewHorizons_AppCommon(SingleValue value)
{
MessagePackObject messagePackObject = value.Matched.PackedValue;
MessagePackObjectDictionary messagePackObjectDictionary = messagePackObject.AsDictionary();
return $"Living on {messagePackObjectDictionary["LandName"].AsString()} Island";
}
}
}

View file

@ -126,6 +126,12 @@ namespace Ryujinx.Ava.Systems.PlayReport
"based on your total Mii count and island level.")
.AddValueFormatter("Common", TomodachiLifeLTD_Status)
)
.AddSpec(
"01006f8002326000", // Animal Crossing New Horizons
spec => spec
.WithDescription("based on your island name.")
.AddValueFormatter("AppCmn", AnimalCrossingNewHorizons_AppCommon)
)
);
private static string Playing(string game) => $"Playing {game}";