From a5e63bc03498bdfb4bbf4ade4787e68e7a1619ee Mon Sep 17 00:00:00 2001 From: KazushiM <85604869+KazushiMe@users.noreply.github.com> Date: Tue, 31 Jan 2023 22:21:07 +0800 Subject: [PATCH] Save 5KiB heap space from pcv; Separate configurator entries with tabs --- README.md | 2 +- .../stratosphere/loader/source/oc/pcv/pcv.cpp | 2 - .../stratosphere/loader/source/patch.py | 4 +- pages/dist/index.html | 56 +++++-- pages/dist/main.js | 145 ++++++++++------- pages/src/index.html | 56 +++++-- pages/src/main.ts | 153 +++++++++++------- 7 files changed, 275 insertions(+), 143 deletions(-) diff --git a/README.md b/README.md index a0fcc8f1..65cd25cf 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ Overclocking suite for Horizon OS (HOS) running on Atmosphere CFW. | GPU OC | 1305 MHz Max | N/A | | RAM OC | 1996 MHz Max | 1862 MHz Max | | RAM Volt | Disabled | Disabled | - | RAM Timing | Auto-Adjusted | Disabled | + | RAM Timing | Auto-Adjusted | N/A | diff --git a/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv.cpp b/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv.cpp index f67fea59..e84c7a23 100644 --- a/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv.cpp +++ b/Source/Atmosphere/stratosphere/loader/source/oc/pcv/pcv.cpp @@ -103,8 +103,6 @@ void SafetyCheck() { { C.commonEmcMemVolt, 1100'000, 1250'000 }, }; - printf("marikoCpuMaxClock: %u\n", C.marikoCpuMaxClock); - for (auto& i : validators) { if (R_FAILED(i.check())) CRASH("Triggered"); diff --git a/Source/Atmosphere/stratosphere/loader/source/patch.py b/Source/Atmosphere/stratosphere/loader/source/patch.py index 22c503f7..7ea5d7c1 100755 --- a/Source/Atmosphere/stratosphere/loader/source/patch.py +++ b/Source/Atmosphere/stratosphere/loader/source/patch.py @@ -22,8 +22,8 @@ def file_replace_str(file_path, search_replace_list): dir_path = os.path.dirname(__file__) -ldr_main = os.path.join(dir_path, "ldr_main.cpp") -file_replace_str(ldr_main, [("constinit u8 g_heap_memory[16_KB];", "constinit u8 g_heap_memory[16_KB + 5_KB];")]) +os.chdir(dir_path) +os.system("git reset --hard") ldr_process_creation = os.path.join(dir_path, "ldr_process_creation.cpp") file_replace_str(ldr_process_creation, diff --git a/pages/dist/index.html b/pages/dist/index.html index e4156ef6..45262af2 100644 --- a/pages/dist/index.html +++ b/pages/dist/index.html @@ -4,12 +4,43 @@ - Switch OC Suite > Project Homepage | Overclocking suite for Horizon OS (HOS) running on Atmosphere CFW. Licensed under GPL v2. + <title>Switch OC Suite | Overclocking suite for Horizon OS (HOS) running on Atmosphere CFW. Licensed under GPL v2.