sysclk: fix typo and add way to change kip editing path

This commit is contained in:
souldbminersmwc
2025-12-14 10:24:39 -05:00
parent bb7f0c8f5f
commit d76cd2e8f9
4 changed files with 47 additions and 16 deletions

View File

@@ -79,7 +79,7 @@ ClockManager::ClockManager()
this->lastCsvWriteNs = 0;
this->rnxSync = new ReverseNXSync;
if(this->config->GetConfigValue(HocClkConfigValue_KipEditing))
this->GetKipData();
}
@@ -523,7 +523,12 @@ void ClockManager::SetRNXRTMode(ReverseNXMode mode)
void ClockManager::SetKipData() {
std::scoped_lock lock{this->contextMutex};
const char* kip = "sdmc:/atmosphere/kips/hoc.kip";
const char* kip;
if(this->config->GetConfigValue(HocClkConfigValue_KipFileName))
kip = "sdmc:/atmosphere/kips/hoc.kip";
else
kip = "sdmc:/atmosphere/kips/loader.kip";
CustomizeTable table;
if (!cust_read_and_cache(kip, &table)) {
@@ -593,8 +598,12 @@ void ClockManager::SetKipData() {
void ClockManager::GetKipData() {
std::scoped_lock lock{this->contextMutex};
const char* kip;
if(this->config->GetConfigValue(HocClkConfigValue_KipFileName))
kip = "sdmc:/atmosphere/kips/hoc.kip";
else
kip = "sdmc:/atmosphere/kips/loader.kip";
const char* kip = "sdmc:/atmosphere/kips/hoc.kip";
CustomizeTable table;
if (!cust_read_and_cache(kip, &table)) {

View File

@@ -83,9 +83,9 @@ extern "C"
setsysExit();
}
rc = fanInitialize();
if (R_FAILED(rc))
diagAbortWithResult(MAKERESULT(Module_Libnx, LibnxError_ShouldNotHappen));
// rc = fanInitialize();
// if (R_FAILED(rc))
// diagAbortWithResult(MAKERESULT(Module_Libnx, LibnxError_ShouldNotHappen));
rc = i2cInitialize();
if (R_FAILED(rc))
@@ -95,7 +95,7 @@ extern "C"
void __appExit(void)
{
CloseFanControllerThread();
fanExit();
// fanExit();
i2cExit();
fsExit();
fsdevUnmountAll();
@@ -126,10 +126,10 @@ int main(int argc, char** argv)
clockMgr->SetRunning(true);
clockMgr->GetConfig()->SetEnabled(true);
ipcSrv->SetRunning(true);
TemperaturePoint *table;
ReadConfigFile(&table);
InitFanController(table);
StartFanControllerThread();
// TemperaturePoint *table;
// ReadConfigFile(&table);
// InitFanController(table);
// StartFanControllerThread();
while (clockMgr->Running())
{