sysclk: add safety check to misc gui
This commit is contained in:
1 parent
28a772c546
commit
051c637dd8
1 file changed
+5
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user