ram boost war: fix crash during boot

This commit is contained in:
Lightos1
2026-07-09 18:42:54 +02:00
parent 1bb088f251
commit c8ccc95715

View File

@@ -454,6 +454,10 @@ namespace clockManager {
/* Memory frequency gets reset when starting a game during boost mode, this reapplies it. */
void GameStartMemWar() {
u32 targetRamHz = GetNearestOverrideHz(HocClkModule_MEM);
if (!targetRamHz) {
return;
}
u32 nearestFreq = GetCurrentNearestFrequency(HocClkModule_MEM);
if (targetRamHz != nearestFreq) {