mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-04-24 06:47:44 +02:00
[ci skip] UI: Strip dumped file information out of the DLC name
This commit is contained in:
parent
e8a7d5b0b7
commit
820e8f7375
1 changed files with 9 additions and 4 deletions
|
@ -129,10 +129,15 @@ namespace Ryujinx.Ava.Utilities.AppLibrary
|
||||||
if (appData.HasValue)
|
if (appData.HasValue)
|
||||||
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 Path.GetFileNameWithoutExtension(dlcData.FileName);
|
|
||||||
|
|
||||||
return id.ToString("X16");
|
return id.ToString("X16");
|
||||||
|
|
||||||
|
string name = Path.GetFileNameWithoutExtension(dlcData.FileName)!;
|
||||||
|
int idx = name.IndexOf('[');
|
||||||
|
if (idx != -1)
|
||||||
|
name = name[..idx];
|
||||||
|
|
||||||
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool FindApplication(ulong id, out ApplicationData foundData)
|
public bool FindApplication(ulong id, out ApplicationData foundData)
|
||||||
|
|
Loading…
Add table
Reference in a new issue