add resolution

This commit is contained in:
souldbminersmwc
2026-03-19 19:44:33 -04:00
parent 4e0b54c1a8
commit 52894e4c93
5 changed files with 50 additions and 2 deletions

View File

@@ -621,7 +621,7 @@ void ClockManager::HandleGovernor(uint32_t targetHz) {
isCpuGovernorEnabled = newCpuGovernorState;
isGpuGovernorEnabled = newGpuGovernorState;
isVRREnabled = newVrrGovernorState;
if(newCpuGovernorState == false && lastCpuGovernorState == true) {
svcSleepThread(50'000'000); // thread syncing. probably a cleaner way to do this but hey, it works!
Board::ResetToStockCpu();
@@ -1010,6 +1010,11 @@ bool ClockManager::RefreshContext()
else
this->context->fps = 254; // N/A
if(this->context->isSaltyNXInstalled)
this->context->resolutionHeight = saltyNXIntegration->GetResolutionHeight();
else
this->context->resolutionHeight = 0; // N/A
return hasChanged;
}