From 86fce20b2740793aad8289308726f30ae0eba7e5 Mon Sep 17 00:00:00 2001 From: souldbminersmwc Date: Sat, 24 Jan 2026 15:17:50 -0500 Subject: [PATCH] Update ptm.cpp --- Source/Atmosphere/stratosphere/loader/source/oc/ptm/ptm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Atmosphere/stratosphere/loader/source/oc/ptm/ptm.cpp b/Source/Atmosphere/stratosphere/loader/source/oc/ptm/ptm.cpp index 2de4c927..84bb4f8b 100644 --- a/Source/Atmosphere/stratosphere/loader/source/oc/ptm/ptm.cpp +++ b/Source/Atmosphere/stratosphere/loader/source/oc/ptm/ptm.cpp @@ -28,10 +28,10 @@ Result CpuPtmBoost(perf_conf_entry* entry) { bool isMariko = true; #endif - if (!C.eristaCpuBoostClock || !C.marikoCpuBoostClock) + if ((C.eristaCpuBoostClock <= 1785000) || C.marikoCpuBoostClock <= 1785000) R_SUCCEED(); - u32 cpuPtmBoostNew = isMariko ? C.marikoCpuBoostClock * 1000 : C.eristaCpuBoostClock * 1000; + u32 cpuPtmBoostNew = isMariko ? (C.marikoCpuBoostClock * 1000) : (C.eristaCpuBoostClock * 1000); PATCH_OFFSET(&(entry->cpu_freq_1), cpuPtmBoostNew); PATCH_OFFSET(&(entry->cpu_freq_2), cpuPtmBoostNew);