Small enhancement

This commit is contained in:
WilliamWsyHK 2024-12-04 00:00:01 +08:00
parent 16e1265bd2
commit 265c8c4370

View File

@ -86,12 +86,12 @@ namespace Ryujinx.HLE.Loaders.Processes
bool isGame = ProgramId > 0x0100000000007FFF; bool isGame = ProgramId > 0x0100000000007FFF;
string name = isGame string name = isGame || !string.IsNullOrWhiteSpace(Name)
? Name ? Name
: "Firmware"; : "Firmware";
// TODO: LibHac npdm currently doesn't support version field. // TODO: LibHac npdm currently doesn't support version field.
string version = isGame string version = isGame || !string.IsNullOrWhiteSpace(DisplayVersion)
? DisplayVersion ? DisplayVersion
: device.System.ContentManager.GetCurrentFirmwareVersion()?.VersionString ?? "?"; : device.System.ContentManager.GetCurrentFirmwareVersion()?.VersionString ?? "?";