sysclk: merge info/about gui
This commit is contained in:
@@ -18,9 +18,12 @@
|
||||
#include <tesla.hpp>
|
||||
#include <string>
|
||||
|
||||
tsl::elm::ListItem* SpeedoItem = NULL;
|
||||
tsl::elm::ListItem* IddqItem = NULL;
|
||||
|
||||
AboutGui::AboutGui()
|
||||
{
|
||||
memset(strings, 0, sizeof(strings));
|
||||
}
|
||||
|
||||
AboutGui::~AboutGui()
|
||||
@@ -29,6 +32,22 @@ AboutGui::~AboutGui()
|
||||
|
||||
void AboutGui::listUI()
|
||||
{
|
||||
this->listElement->addItem(
|
||||
new tsl::elm::CategoryHeader("Speedo/IDDQ")
|
||||
);
|
||||
|
||||
SpeedoItem =
|
||||
new tsl::elm::ListItem("Speedos:");
|
||||
this->listElement->addItem(SpeedoItem);
|
||||
|
||||
IddqItem =
|
||||
new tsl::elm::ListItem("IDDQ:");
|
||||
this->listElement->addItem(IddqItem);
|
||||
|
||||
this->listElement->addItem(
|
||||
new tsl::elm::CategoryHeader("Credits")
|
||||
);
|
||||
|
||||
this->listElement->addItem(
|
||||
new tsl::elm::CategoryHeader("Developers")
|
||||
);
|
||||
@@ -154,8 +173,7 @@ void AboutGui::listUI()
|
||||
|
||||
this->listElement->addItem(
|
||||
new tsl::elm::ListItem("The Switch Homebrew Community")
|
||||
);
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
void AboutGui::update()
|
||||
@@ -169,7 +187,11 @@ void AboutGui::refresh()
|
||||
|
||||
if (!this->context)
|
||||
return;
|
||||
|
||||
// Format strings once per refresh
|
||||
sprintf(strings[0], "%u/%u/%u", this->context->speedos[HorizonOCSpeedo_CPU], this->context->speedos[HorizonOCSpeedo_GPU], this->context->speedos[HorizonOCSpeedo_SOC]);
|
||||
sprintf(strings[1], "%u/%u/%u", this->context->iddq[HorizonOCSpeedo_CPU], this->context->iddq[HorizonOCSpeedo_GPU], this->context->iddq[HorizonOCSpeedo_SOC]);
|
||||
SpeedoItem->setValue(strings[0]);
|
||||
IddqItem->setValue(strings[1]);
|
||||
}
|
||||
/*
|
||||
## Credits
|
||||
|
||||
Reference in New Issue
Block a user