diff --git a/README.md b/README.md index 00594540..383d3fe7 100644 --- a/README.md +++ b/README.md @@ -144,19 +144,11 @@ This project will not be actively maintained or regularly updated along with Atm - Fusee will load any kips in `/atmosphere/kips/` automatically. +### Patching sysmodules manually -## Build +This method is only served as reference. -Grab necessary patches from the repo, then compile sys-clk, ReverseNX-RT and Atmosphere loader with devkitpro. - -If you are to install nro forwarders, remove `R_TRY(ValidateAcidSignature(std::addressof(g_original_meta_cache.meta)));` in `Atmosphere/stratosphere/loader/source/ldr_meta.cpp` to make them work again. - -Uncompress the kip to make it work with config editor: `hactool -t kip1 Atmosphere/stratosphere/loader/loader.kip --uncompress=Atmosphere/stratosphere/loader/loader.kip` - - -### [DEPRECATED] Patching sysmodules manually - -This method is NOT RECOMMENDED and NOT SUPPORTED ANY MORE, only served as reference. +Patched sysmodules would be persistent until pcv or ptm was updated in new HOS (usually in `x.0.0`).
@@ -178,6 +170,18 @@ This method is NOT RECOMMENDED and NOT SUPPORTED ANY MORE, only served as refere +## Build + +### Loader KIP + +Grab necessary patches from the repo, then compile sys-clk, ReverseNX-RT and Atmosphere loader with devkitpro. + +If you are to install nro forwarders, remove `R_TRY(ValidateAcidSignature(std::addressof(g_original_meta_cache.meta)));` in `Atmosphere/stratosphere/loader/source/ldr_meta.cpp` to make them work again. + +Uncompress the kip to make it work with config editor: `hactool -t kip1 Atmosphere/stratosphere/loader/loader.kip --uncompress=Atmosphere/stratosphere/loader/loader.kip` + + + ## Acknowledgement - CTCaer for [Hekate-ipl](https://github.com/CTCaer/hekate) bootloader, RE and hardware research diff --git a/Source/sys-clk-OC/sysmodule/src/clock_manager.cpp b/Source/sys-clk-OC/sysmodule/src/clock_manager.cpp index 8de882b0..6d80c5d4 100644 --- a/Source/sys-clk-OC/sysmodule/src/clock_manager.cpp +++ b/Source/sys-clk-OC/sysmodule/src/clock_manager.cpp @@ -163,22 +163,22 @@ uint32_t ClockManager::GetHz(SysClkModule module) return this->oc->maxMEMFreq; } + } - /* Handle Handheld Emulator-Mode limit */ - if (this->context->realProfile == SysClkProfile_Handheld) + /* Handle Handheld Emulator-Mode limit */ + if (this->context->realProfile == SysClkProfile_Handheld) + { + switch (module) { - switch (module) - { - case SysClkModule_CPU: - this->oc->handheldEmulatorMode = (hz > SYSCLK_CPU_HANDHELD_MAX_HZ); - break; - case SysClkModule_GPU: - if (this->oc->handheldEmulatorMode) - hz = std::min(hz, SYSCLK_GPU_HANDHELD_EMULATOR_HZ); - break; - default: - break; - } + case SysClkModule_CPU: + this->oc->handheldEmulatorMode = (hz > SYSCLK_CPU_HANDHELD_MAX_HZ); + break; + case SysClkModule_GPU: + if (this->oc->handheldEmulatorMode) + hz = std::min(hz, SYSCLK_GPU_HANDHELD_EMULATOR_HZ); + break; + default: + break; } }