From 6642ceecb7c996df5c688e43b57f0cf30aca14ae Mon Sep 17 00:00:00 2001 From: Israel Albino Galvan Date: Tue, 5 Mar 2024 22:47:48 -0300 Subject: [PATCH] Display title name instead of build ID in CheatWindow UI Update the CheatWindow UI in Avalonia and Gtk3 to display the title name instead of the build ID. Fix #5903 --- src/Ryujinx.Gtk3/UI/Windows/CheatWindow.cs | 2 +- src/Ryujinx/UI/Windows/CheatWindow.axaml | 4 ++-- src/Ryujinx/UI/Windows/CheatWindow.axaml.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Ryujinx.Gtk3/UI/Windows/CheatWindow.cs b/src/Ryujinx.Gtk3/UI/Windows/CheatWindow.cs index 96ed0723ed..731996be1e 100644 --- a/src/Ryujinx.Gtk3/UI/Windows/CheatWindow.cs +++ b/src/Ryujinx.Gtk3/UI/Windows/CheatWindow.cs @@ -86,7 +86,7 @@ namespace Ryujinx.UI.Windows string parentPath = currentCheatFile.Replace(titleModsPath, ""); buildId = System.IO.Path.GetFileNameWithoutExtension(currentCheatFile).ToUpper(); - parentIter = ((TreeStore)_cheatTreeView.Model).AppendValues(false, buildId, parentPath, ""); + parentIter = ((TreeStore)_cheatTreeView.Model).AppendValues(false, titleName, parentPath, ""); } string cleanName = cheat.Name[1..^7]; diff --git a/src/Ryujinx/UI/Windows/CheatWindow.axaml b/src/Ryujinx/UI/Windows/CheatWindow.axaml index 57d5f7eff5..ee084255c4 100644 --- a/src/Ryujinx/UI/Windows/CheatWindow.axaml +++ b/src/Ryujinx/UI/Windows/CheatWindow.axaml @@ -1,4 +1,4 @@ - - + diff --git a/src/Ryujinx/UI/Windows/CheatWindow.axaml.cs b/src/Ryujinx/UI/Windows/CheatWindow.axaml.cs index d78e48a4d8..a2e4e4dc3a 100644 --- a/src/Ryujinx/UI/Windows/CheatWindow.axaml.cs +++ b/src/Ryujinx/UI/Windows/CheatWindow.axaml.cs @@ -72,7 +72,7 @@ namespace Ryujinx.Ava.UI.Windows string parentPath = currentCheatFile.Replace(titleModsPath, ""); buildId = Path.GetFileNameWithoutExtension(currentCheatFile).ToUpper(); - currentGroup = new CheatNode("", buildId, parentPath, true); + currentGroup = new CheatNode(titleName, buildId, parentPath, true); LoadedCheats.Add(currentGroup); }