misc: chore: Strip extension in GetNameForApplicationId instead of requiring the caller to do it

This commit is contained in:
Evan Husted 2025-01-30 20:22:11 -06:00
parent 9075a3960b
commit e18c6d90c4
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ namespace Ryujinx.Ava.UI.Models
public string FormattedName =>
InSd && ulong.TryParse(Name, NumberStyles.HexNumber, null, out ulong applicationId)
? $"Atmosphère: {System.IO.Path.GetFileNameWithoutExtension(RyujinxApp.MainWindow.ApplicationLibrary.GetNameForApplicationId(applicationId))}"
? $"Atmosphère: {RyujinxApp.MainWindow.ApplicationLibrary.GetNameForApplicationId(applicationId)}"
: Name;
public ModModel(string path, string name, bool enabled, bool inSd)

View File

@ -130,7 +130,7 @@ namespace Ryujinx.Ava.Utilities.AppLibrary
return appData.Value.Name;
if (DownloadableContents.Keys.FindFirst(x => x.TitleId == id).TryGet(out DownloadableContentModel dlcData))
return dlcData.FileName;
return Path.GetFileNameWithoutExtension(dlcData.FileName);
return id.ToString("X16");
}