From f780a08ab6861dbf02c861fa722dc89ba7a6b20c Mon Sep 17 00:00:00 2001 From: Mabel Date: Tue, 19 May 2026 22:51:36 -0700 Subject: [PATCH] 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. --- src/Ryujinx/Systems/PlayReport/PlayReports.Formatters.cs | 8 ++++++++ src/Ryujinx/Systems/PlayReport/PlayReports.cs | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/src/Ryujinx/Systems/PlayReport/PlayReports.Formatters.cs b/src/Ryujinx/Systems/PlayReport/PlayReports.Formatters.cs index e5cd04630..d8df7b627 100644 --- a/src/Ryujinx/Systems/PlayReport/PlayReports.Formatters.cs +++ b/src/Ryujinx/Systems/PlayReport/PlayReports.Formatters.cs @@ -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"; + } } } diff --git a/src/Ryujinx/Systems/PlayReport/PlayReports.cs b/src/Ryujinx/Systems/PlayReport/PlayReports.cs index 11f6814b2..8880ed5d4 100644 --- a/src/Ryujinx/Systems/PlayReport/PlayReports.cs +++ b/src/Ryujinx/Systems/PlayReport/PlayReports.cs @@ -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}";