mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-27 02:53:04 +00:00
Fix PPTC version string for firmware titles (#6071)
This commit is contained in:
parent
6f50b9bdb0
commit
59a0c7cfd8
1 changed files with 12 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue