- [Sys-clk-OC] (#31) Fix the inverted priority of per-app and global settings in clocks and patches detection
- [loader] Bump to 1.4.0-pre - [system_settings] Add possible entries introduced in HOS 15.0.0
This commit is contained in:
@@ -98,19 +98,19 @@ AdvancedSettingsTab::AdvancedSettingsTab()
|
||||
this->addView(gpuFreqListItem);
|
||||
this->addView(memFreqListItem);
|
||||
|
||||
// Permanent overrides
|
||||
this->addView(new brls::Header("Permanent overrides"));
|
||||
// Global profile
|
||||
this->addView(new brls::Header("Global profile"));
|
||||
|
||||
// Add the ListItem to Permanent override
|
||||
Title* permTitle = (Title*) malloc(sizeof(Title));
|
||||
permTitle->tid = 0xA111111111111111;
|
||||
// Add the ListItem to Global profile
|
||||
Title* globalTitle = (Title*) malloc(sizeof(Title));
|
||||
globalTitle->tid = SYSCLK_GLOBAL_PROFILE_TID;
|
||||
|
||||
brls::ListItem *listItem = new brls::ListItem(std::string("Permanent Override"));
|
||||
listItem->getClickEvent()->subscribe([permTitle](View* view) {
|
||||
AppProfileFrame* profileFrame = new AppProfileFrame(permTitle);
|
||||
brls::ListItem *globalList = new brls::ListItem(std::string("Set global profile"));
|
||||
globalList->getClickEvent()->subscribe([globalTitle](View* view) {
|
||||
AppProfileFrame* profileFrame = new AppProfileFrame(globalTitle);
|
||||
brls::Application::pushView(profileFrame, brls::ViewAnimation::SLIDE_LEFT);
|
||||
});
|
||||
this->addView(listItem);
|
||||
this->addView(globalList);
|
||||
|
||||
// Config
|
||||
// Broken, only accepting single digit
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
|
||||
AppProfileFrame::AppProfileFrame(Title* title) : ThumbnailFrame(), title(title)
|
||||
{
|
||||
bool isPermanent = (title->tid == 0xA111111111111111);
|
||||
bool isGlobal = (title->tid == SYSCLK_GLOBAL_PROFILE_TID);
|
||||
|
||||
this->setTitle(isPermanent ? "Edit Permanent Override" : "Edit application profile");
|
||||
this->setTitle(isGlobal ? "Edit global profile" : "Edit application profile");
|
||||
this->setIcon(new brls::MaterialIcon("\uE315"));
|
||||
|
||||
// Get the freqs
|
||||
@@ -42,7 +42,7 @@ AppProfileFrame::AppProfileFrame(Title* title) : ThumbnailFrame(), title(title)
|
||||
errorResult("sysclkIpcGetProfiles", rc);
|
||||
|
||||
// Setup the right sidebar
|
||||
if (!isPermanent)
|
||||
if (!isGlobal)
|
||||
{
|
||||
this->getSidebar()->setThumbnail(title->icon, sizeof(title->icon));
|
||||
this->getSidebar()->setTitle(std::string(title->name));
|
||||
|
||||
Reference in New Issue
Block a user