sysclk: add safety check to misc gui

This commit is contained in:
souldbminersmwc
2026-01-21 18:19:30 -05:00
parent 28a772c546
commit 051c637dd8

View File

@@ -1256,8 +1256,11 @@ void MiscGui::refresh() {
if (this->context && ++frameCounter >= 60) {
frameCounter = 0;
sysclkIpcGetConfigValues(this->configList);
Result rc = sysclkIpcGetConfigValues(this->configList);
if (R_FAILED(rc)) [[unlikely]] {
FatalGui::openWithResultCode("sysclkIpcGetConfigValues", rc);
return;
}
updateConfigToggles();
for (const auto& [configVal, button] : this->configButtons) {