From a4cbbdaa97691caee4d607958d7124a5f1301208 Mon Sep 17 00:00:00 2001 From: dkeruza Date: Fri, 24 Jan 2025 10:58:54 +0100 Subject: [PATCH] Update patch.c typo --- src/lindbergh/patch.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lindbergh/patch.c b/src/lindbergh/patch.c index dac7d93..75a03ff 100644 --- a/src/lindbergh/patch.c +++ b/src/lindbergh/patch.c @@ -853,9 +853,9 @@ int initPatch() detourFunction(0x0804be14, hod4VsPrintf); } - if (getConfig()->cpuFreqMhz != 0.0f) + if (getConfig()->cpuFreqGhz != 0.0f) { - uint32_t cpuFreq = (uint32_t)(getConfig()->cpuFreqMhz * 998000000.0); + uint32_t cpuFreq = (uint32_t)(getConfig()->cpuFreqGhz * 998000000.0); setVariable(0x0828ea13, cpuFreq); } } @@ -936,9 +936,9 @@ int initPatch() detourFunction(0x0804be04, hod4VsPrintf); } - if (getConfig()->cpuFreqMhz != 0.0f) + if (getConfig()->cpuFreqGhz != 0.0f) { - uint32_t cpuFreq = (uint32_t)(getConfig()->cpuFreqMhz * 998000000.0); + uint32_t cpuFreq = (uint32_t)(getConfig()->cpuFreqGhz * 998000000.0); setVariable(0x08289353, cpuFreq); } } @@ -1001,9 +1001,9 @@ int initPatch() detourFunction(0x0804be04, hod4VsPrintf); } - if (getConfig()->cpuFreqMhz != 0.0f) + if (getConfig()->cpuFreqGhz != 0.0f) { - uint32_t cpuFreq = (uint32_t)(getConfig()->cpuFreqMhz * 998000000.0); + uint32_t cpuFreq = (uint32_t)(getConfig()->cpuFreqGhz * 998000000.0); setVariable(0x08289353, cpuFreq); } }