hocclk: console specific changes
This commit is contained in:
@@ -300,7 +300,7 @@ public:
|
|||||||
static constexpr struct { const char* label; int shift; } kAll[] = {
|
static constexpr struct { const char* label; int shift; } kAll[] = {
|
||||||
{"CPU", 0}, {"GPU", 8}, {"VRR", 16}
|
{"CPU", 0}, {"GPU", 8}, {"VRR", 16}
|
||||||
};
|
};
|
||||||
int count = configList.values[HocClkConfigValue_OverwriteRefreshRate] ? 3 : 2;
|
int count = configList.values[HocClkConfigValue_OverwriteRefreshRate] || this->context->isUsingRetroSuper ? 3 : 2;
|
||||||
|
|
||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
u8 cur = (this->profileList->mhzMap[this->profile][HocClkModule_Governor] >> kAll[i].shift) & 0xFF;
|
u8 cur = (this->profileList->mhzMap[this->profile][HocClkModule_Governor] >> kAll[i].shift) & 0xFF;
|
||||||
|
|||||||
@@ -311,7 +311,7 @@ public:
|
|||||||
static constexpr struct { const char* label; int shift; } kAll[] = {
|
static constexpr struct { const char* label; int shift; } kAll[] = {
|
||||||
{"CPU", 0}, {"GPU", 8}, {"VRR", 16}
|
{"CPU", 0}, {"GPU", 8}, {"VRR", 16}
|
||||||
};
|
};
|
||||||
int count = configList.values[HocClkConfigValue_OverwriteRefreshRate] ? 3 : 2;
|
int count = configList.values[HocClkConfigValue_OverwriteRefreshRate] || this->context->isUsingRetroSuper ? 3 : 2;
|
||||||
|
|
||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
u8 cur = (this->packed >> kAll[i].shift) & 0xFF;
|
u8 cur = (this->packed >> kAll[i].shift) & 0xFF;
|
||||||
|
|||||||
@@ -743,7 +743,7 @@ protected:
|
|||||||
ValueThresholds displayThresholds(60, 65);
|
ValueThresholds displayThresholds(60, 65);
|
||||||
addConfigButton(
|
addConfigButton(
|
||||||
HocClkConfigValue_MaxDisplayClockH,
|
HocClkConfigValue_MaxDisplayClockH,
|
||||||
"Max Handheld Display",
|
"Max Handheld Display Hz",
|
||||||
ValueRange(60, IsAula() ? 65 : 75, 1, " Hz", 1),
|
ValueRange(60, IsAula() ? 65 : 75, 1, " Hz", 1),
|
||||||
"Display Clock",
|
"Display Clock",
|
||||||
&displayThresholds,
|
&displayThresholds,
|
||||||
@@ -752,16 +752,18 @@ protected:
|
|||||||
false
|
false
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
addConfigButton(
|
if(!IsAula()) {
|
||||||
HocClkConfigValue_DisplayVoltage,
|
addConfigButton(
|
||||||
"Display Voltage",
|
HocClkConfigValue_DisplayVoltage,
|
||||||
ValueRange(800, 1200, 25, " mV", 1),
|
"Display Voltage",
|
||||||
"Display Voltage",
|
ValueRange(800, 1200, 25, " mV", 1),
|
||||||
&thresholdsDisabled,
|
"Display Voltage",
|
||||||
{},
|
&thresholdsDisabled,
|
||||||
{},
|
{},
|
||||||
false
|
{},
|
||||||
);
|
false
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user