Fix PPTC version string for firmware titles (#6071)

This commit is contained in:
gdkchan 2024-01-03 20:08:10 -03:00 committed by GitHub
parent 6f50b9bdb0
commit 59a0c7cfd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -356,11 +356,22 @@ namespace Ryujinx.HLE.Loaders.Processes
return ProcessResult.Failed; return ProcessResult.Failed;
} }
string displayVersion;
if (metaLoader.GetProgramId() > 0x0100000000007FFF)
{
displayVersion = applicationControlProperties.Value.DisplayVersionString.ToString();
}
else
{
displayVersion = device.System.ContentManager.GetCurrentFirmwareVersion()?.VersionString ?? string.Empty;
}
var processContextFactory = new ArmProcessContextFactory( var processContextFactory = new ArmProcessContextFactory(
context.Device.System.TickSource, context.Device.System.TickSource,
context.Device.Gpu, context.Device.Gpu,
$"{programId:x16}", $"{programId:x16}",
applicationControlProperties.Value.DisplayVersionString.ToString(), displayVersion,
diskCacheEnabled, diskCacheEnabled,
codeStart, codeStart,
codeSize); codeSize);