small simplification
This commit is contained in:
parent
52338db1e8
commit
d64bf7d93c
@ -129,9 +129,8 @@ namespace Ryujinx.Ava.Utilities.AppLibrary
|
|||||||
if (appData.HasValue)
|
if (appData.HasValue)
|
||||||
return appData.Value.Name;
|
return appData.Value.Name;
|
||||||
|
|
||||||
Gommon.Optional<DownloadableContentModel> dlcData = DownloadableContents.Keys.FindFirst(x => x.TitleId == id);
|
if (DownloadableContents.Keys.FindFirst(x => x.TitleId == id).TryGet(out DownloadableContentModel dlcData))
|
||||||
if (dlcData.HasValue)
|
return dlcData.FileName;
|
||||||
return dlcData.Value.FileName;
|
|
||||||
|
|
||||||
return id.ToString("X16");
|
return id.ToString("X16");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user