From 59a0c7cfd86e618ea947e498448077ecc362e366 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 3 Jan 2024 20:08:10 -0300 Subject: [PATCH] Fix PPTC version string for firmware titles (#6071) --- .../Loaders/Processes/ProcessLoaderHelper.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx.HLE/Loaders/Processes/ProcessLoaderHelper.cs b/src/Ryujinx.HLE/Loaders/Processes/ProcessLoaderHelper.cs index 551ebeb2af..a6a1d87e0b 100644 --- a/src/Ryujinx.HLE/Loaders/Processes/ProcessLoaderHelper.cs +++ b/src/Ryujinx.HLE/Loaders/Processes/ProcessLoaderHelper.cs @@ -356,11 +356,22 @@ namespace Ryujinx.HLE.Loaders.Processes 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( context.Device.System.TickSource, context.Device.Gpu, $"{programId:x16}", - applicationControlProperties.Value.DisplayVersionString.ToString(), + displayVersion, diskCacheEnabled, codeStart, codeSize);