mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-04-24 06:47:44 +02:00
misc: chore: Strip extension in GetNameForApplicationId instead of requiring the caller to do it
This commit is contained in:
parent
9075a3960b
commit
e18c6d90c4
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ namespace Ryujinx.Ava.UI.Models
|
||||||
|
|
||||||
public string FormattedName =>
|
public string FormattedName =>
|
||||||
InSd && ulong.TryParse(Name, NumberStyles.HexNumber, null, out ulong applicationId)
|
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;
|
: Name;
|
||||||
|
|
||||||
public ModModel(string path, string name, bool enabled, bool inSd)
|
public ModModel(string path, string name, bool enabled, bool inSd)
|
||||||
|
|
|
@ -130,7 +130,7 @@ namespace Ryujinx.Ava.Utilities.AppLibrary
|
||||||
return appData.Value.Name;
|
return appData.Value.Name;
|
||||||
|
|
||||||
if (DownloadableContents.Keys.FindFirst(x => x.TitleId == id).TryGet(out DownloadableContentModel dlcData))
|
if (DownloadableContents.Keys.FindFirst(x => x.TitleId == id).TryGet(out DownloadableContentModel dlcData))
|
||||||
return dlcData.FileName;
|
return Path.GetFileNameWithoutExtension(dlcData.FileName);
|
||||||
|
|
||||||
return id.ToString("X16");
|
return id.ToString("X16");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue