Add Firmware keyword if it is indeed firmware

This commit is contained in:
WilliamWsyHK 2024-12-03 23:15:29 +08:00
parent 3d168a8bfa
commit 16e1265bd2

View File

@ -84,12 +84,18 @@ namespace Ryujinx.HLE.Loaders.Processes
return false; return false;
} }
bool isGame = ProgramId > 0x0100000000007FFF;
string name = isGame
? Name
: "Firmware";
// TODO: LibHac npdm currently doesn't support version field. // TODO: LibHac npdm currently doesn't support version field.
string version = ProgramId > 0x0100000000007FFF string version = isGame
? DisplayVersion ? DisplayVersion
: device.System.ContentManager.GetCurrentFirmwareVersion()?.VersionString ?? "?"; : device.System.ContentManager.GetCurrentFirmwareVersion()?.VersionString ?? "?";
Logger.Info?.Print(LogClass.Loader, $"Application Loaded: {Name} v{version} [{ProgramIdText}] [{(Is64Bit ? "64-bit" : "32-bit")}]"); Logger.Info?.Print(LogClass.Loader, $"Application Loaded: {name} v{version} [{ProgramIdText}] [{(Is64Bit ? "64-bit" : "32-bit")}]");
return true; return true;
} }