mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-23 04:52:08 +00:00
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:
parent
7f27aad88f
commit
f780a08ab6
2 changed files with 14 additions and 0 deletions
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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}";
|
||||
|
|
|
|||
Loading…
Reference in a new issue