sysclk - start minimal integrations

This commit is contained in:
souldbminersmwc
2026-01-04 19:04:18 -05:00
parent 2b883a9279
commit 33c49aac86
13 changed files with 110 additions and 22 deletions

View File

@@ -271,12 +271,14 @@ void AppProfileGui::addProfileUI(SysClkProfile profile)
this->addModuleListItem(profile, SysClkModule_CPU);
this->addModuleListItem(profile, SysClkModule_GPU);
this->addModuleListItem(profile, SysClkModule_MEM);
if(!IsHoag()) {
if(profile != SysClkProfile_Docked)
this->addModuleListItemValue(profile, HorizonOCModule_Display, "Display", 40, 72, 1, " Hz", 1, 0);
else
this->addModuleListItemValue(profile, HorizonOCModule_Display, "Display", 50, 120, 5, " Hz", 1, 0);
}
#ifndef IS_MINIMAL
if(!IsHoag()) {
if(profile != SysClkProfile_Docked)
this->addModuleListItemValue(profile, HorizonOCModule_Display, "Display", 40, 72, 1, " Hz", 1, 0);
else
this->addModuleListItemValue(profile, HorizonOCModule_Display, "Display", 50, 120, 5, " Hz", 1, 0);
}
#endif
this->addModuleListItemToggle(profile, HorizonOCModule_Governor);
}

View File

@@ -255,8 +255,10 @@ void GlobalOverrideGui::listUI()
this->addModuleListItem(SysClkModule_CPU);
this->addModuleListItem(SysClkModule_GPU);
this->addModuleListItem(SysClkModule_MEM);
if(!IsHoag())
this->addModuleListItemValue(HorizonOCModule_Display, "Display", 40, 72, 1, " Hz", 1, 0);
#ifndef IS_MINIMAL
if(!IsHoag())
this->addModuleListItemValue(HorizonOCModule_Display, "Display", 40, 72, 1, " Hz", 1, 0);
#endif
this->addModuleToggleItem(HorizonOCModule_Governor);
}

View File

@@ -97,18 +97,19 @@ void MainGui::listUI()
return false;
});
this->listElement->addItem(miscItem);
#ifndef IS_MINIMAL
tsl::elm::ListItem* infoItem = new tsl::elm::ListItem("Information");
infoItem->setClickListener([this](u64 keys) {
if((keys & HidNpadButton_A) == HidNpadButton_A && this->context)
{
tsl::changeTo<InfoGui>();
return true;
}
tsl::elm::ListItem* infoItem = new tsl::elm::ListItem("Information");
infoItem->setClickListener([this](u64 keys) {
if((keys & HidNpadButton_A) == HidNpadButton_A && this->context)
{
tsl::changeTo<InfoGui>();
return true;
}
return false;
});
this->listElement->addItem(infoItem);
return false;
});
this->listElement->addItem(infoItem);
#endif
}
void MainGui::refresh()