1
0
mirror of synced 2025-03-01 07:00:29 +01:00

Update patch.c

typo
This commit is contained in:
dkeruza 2025-01-24 10:58:54 +01:00 committed by GitHub
parent 2810022d1d
commit a4cbbdaa97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}
}