sysclk: add safety check to misc gui
This commit is contained in:
@@ -1256,8 +1256,11 @@ void MiscGui::refresh() {
|
|||||||
if (this->context && ++frameCounter >= 60) {
|
if (this->context && ++frameCounter >= 60) {
|
||||||
frameCounter = 0;
|
frameCounter = 0;
|
||||||
|
|
||||||
sysclkIpcGetConfigValues(this->configList);
|
Result rc = sysclkIpcGetConfigValues(this->configList);
|
||||||
|
if (R_FAILED(rc)) [[unlikely]] {
|
||||||
|
FatalGui::openWithResultCode("sysclkIpcGetConfigValues", rc);
|
||||||
|
return;
|
||||||
|
}
|
||||||
updateConfigToggles();
|
updateConfigToggles();
|
||||||
|
|
||||||
for (const auto& [configVal, button] : this->configButtons) {
|
for (const auto& [configVal, button] : this->configButtons) {
|
||||||
|
|||||||
Reference in New Issue
Block a user