From 85982dd7ae8f78ce936c1c1029c27cb5da639a18 Mon Sep 17 00:00:00 2001 From: "Daniel R." <47796739+polybiusproxy@users.noreply.github.com> Date: Fri, 27 Dec 2024 18:05:20 +0100 Subject: [PATCH] Use process param for querying SDK ver --- src/core/linker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/linker.cpp b/src/core/linker.cpp index b3891abf..52be991e 100644 --- a/src/core/linker.cpp +++ b/src/core/linker.cpp @@ -138,8 +138,8 @@ void Linker::Execute() { mem_param.extended_memory_2 = nullptr; } - const u64 fw_ver = Common::ElfInfo::Instance().RawFirmwareVer(); - if (fw_ver < Common::ElfInfo::FW_50) { + const u64 sdk_ver = proc_param->sdk_version; + if (sdk_ver < Common::ElfInfo::FW_50) { use_extended_mem1 = mem_param.extended_memory_1 ? *mem_param.extended_memory_1 : false; use_extended_mem2 = mem_param.extended_memory_2 ? *mem_param.extended_memory_2 : false; }