From 9bb371e87565259897081513508c1e883bfc07de Mon Sep 17 00:00:00 2001 From: Piplup Date: Mon, 3 Feb 2025 01:55:44 +0000 Subject: [PATCH 1/5] Added Super Mario Odyssey --- src/Ryujinx/DiscordIntegrationModule.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Ryujinx/DiscordIntegrationModule.cs b/src/Ryujinx/DiscordIntegrationModule.cs index add46bda4..f41847faa 100644 --- a/src/Ryujinx/DiscordIntegrationModule.cs +++ b/src/Ryujinx/DiscordIntegrationModule.cs @@ -131,6 +131,11 @@ namespace Ryujinx.Ava "01007ef00011e000", gameSpec => gameSpec.AddValueFormatter("IsHardMode", val => val is 1 ? "Playing Master Mode" : "Playing Normal Mode") + ) + .AddSpec( // Super Mario Odyssey + "0100000000010000", + gameSpec => + gameSpec.AddValueFormatter("is_kids_mode", val => val is 1 ? "Playing in Assist Mode" : "Playing in Regular Mode") ); private static void HandlePlayReport(MessagePackObject playReport) -- 2.47.1 From 08dba620ca8263be668e9ac26c5603a0422363ab Mon Sep 17 00:00:00 2001 From: Piplup Date: Mon, 3 Feb 2025 01:56:08 +0000 Subject: [PATCH 2/5] Added Super Mario Odyssey (China) --- src/Ryujinx/DiscordIntegrationModule.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Ryujinx/DiscordIntegrationModule.cs b/src/Ryujinx/DiscordIntegrationModule.cs index f41847faa..246e6d1b2 100644 --- a/src/Ryujinx/DiscordIntegrationModule.cs +++ b/src/Ryujinx/DiscordIntegrationModule.cs @@ -136,6 +136,11 @@ namespace Ryujinx.Ava "0100000000010000", gameSpec => gameSpec.AddValueFormatter("is_kids_mode", val => val is 1 ? "Playing in Assist Mode" : "Playing in Regular Mode") + ) + .AddSpec( // Super Mario Odyssey (China) + "010075000ECBE000", + gameSpec => + gameSpec.AddValueFormatter("is_kids_mode", val => val is 1 ? "Playing in 帮助模式" : "Playing in 普通模式") ); private static void HandlePlayReport(MessagePackObject playReport) -- 2.47.1 From ec6a910051735f9cf11ab512ebf5a768bef68c45 Mon Sep 17 00:00:00 2001 From: Piplup Date: Mon, 3 Feb 2025 01:56:32 +0000 Subject: [PATCH 3/5] Added Super Mario 3D World + Bowser's Fury --- src/Ryujinx/DiscordIntegrationModule.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Ryujinx/DiscordIntegrationModule.cs b/src/Ryujinx/DiscordIntegrationModule.cs index 246e6d1b2..a6d4c9520 100644 --- a/src/Ryujinx/DiscordIntegrationModule.cs +++ b/src/Ryujinx/DiscordIntegrationModule.cs @@ -141,6 +141,11 @@ namespace Ryujinx.Ava "010075000ECBE000", gameSpec => gameSpec.AddValueFormatter("is_kids_mode", val => val is 1 ? "Playing in 帮助模式" : "Playing in 普通模式") + ) + .AddSpec( // Super Mario 3D World + Bowser's Fury + "010028600EBDA000", + gameSpec => + gameSpec.AddValueFormatter("mode", val => val is 0 ? "Playing Super Mario 3D World" : "Playing Bowser's Fury") ); private static void HandlePlayReport(MessagePackObject playReport) -- 2.47.1 From 114c9d1afa00bcc8a317da29fab4bba76cb44907 Mon Sep 17 00:00:00 2001 From: Piplup Date: Mon, 3 Feb 2025 01:57:34 +0000 Subject: [PATCH 4/5] Added Mario Kart 8 Deluxe Holy fuck there alot of modes for this game --- src/Ryujinx/DiscordIntegrationModule.cs | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/src/Ryujinx/DiscordIntegrationModule.cs b/src/Ryujinx/DiscordIntegrationModule.cs index a6d4c9520..5c25137bb 100644 --- a/src/Ryujinx/DiscordIntegrationModule.cs +++ b/src/Ryujinx/DiscordIntegrationModule.cs @@ -82,6 +82,36 @@ namespace Ryujinx.Ava } } + public static string MarioKart8(object obj) + { + return obj switch + { + // Single Player + "Single" => "Single Player", + // Multiplayer + "Multi-2players" => "Multiplayer 2 Players", + "Multi-3players" => "Multiplayer 3 Players", + "Multi-4players" => "Multiplayer 4 Players", + // Wireless/LAN Play + "Local-Single" => "Wireless/LAN Play", + "Local-2players" => "Wireless/LAN Play 2 Players", + // CC Classes + "50cc" => "50cc", + "100cc" => "100cc", + "150cc" => "150cc", + "Mirror" => "Mirror (150cc)", + "200cc" => "200cc", + // Modes + "GrandPrix" => "Grand Prix", + "TimeAttack" => "Time Trials", + "VS" => "VS Races", + "Battle" => "Battle Mode", + "RaceStart" => "Selecting a Course", + "Race" => "Racing", + _ => "Playing Mario Kart 8 Deluxe" + }; + } + public static void Use(Optional titleId) { if (titleId.TryGet(out string tid)) @@ -146,6 +176,12 @@ namespace Ryujinx.Ava "010028600EBDA000", gameSpec => gameSpec.AddValueFormatter("mode", val => val is 0 ? "Playing Super Mario 3D World" : "Playing Bowser's Fury") + ) + .AddSpec( // Mario Kart 8 Deluxe + "0100152000022000", + gameSpec => + // Multiplayer + gameSpec.AddValueFormatter("To", MarioKart8) ); private static void HandlePlayReport(MessagePackObject playReport) -- 2.47.1 From 3a6256557cb039e4c36d9d54c51dfc30e62ecfd6 Mon Sep 17 00:00:00 2001 From: Piplup Date: Mon, 3 Feb 2025 01:57:55 +0000 Subject: [PATCH 5/5] Added Mario Kart 8 Deluxe (China) --- src/Ryujinx/DiscordIntegrationModule.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx/DiscordIntegrationModule.cs b/src/Ryujinx/DiscordIntegrationModule.cs index 5c25137bb..7f48089b9 100644 --- a/src/Ryujinx/DiscordIntegrationModule.cs +++ b/src/Ryujinx/DiscordIntegrationModule.cs @@ -180,7 +180,11 @@ namespace Ryujinx.Ava .AddSpec( // Mario Kart 8 Deluxe "0100152000022000", gameSpec => - // Multiplayer + gameSpec.AddValueFormatter("To", MarioKart8) + ) + .AddSpec( // Mario Kart 8 Deluxe (China) + "010075100E8EC000", + gameSpec => gameSpec.AddValueFormatter("To", MarioKart8) ); -- 2.47.1