Skip to content

Commit

Permalink
feat: Enable more PowerPlay logs
Browse files Browse the repository at this point in the history
  • Loading branch information
VisualEhrmanntraut committed Sep 21, 2024
1 parent c4a27cb commit d72e42e
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions NootedRed/HWLibs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,14 +663,19 @@ CAILResult X5000HWLibs::wrapCosReadConfigurationSetting(void *cosHandle, CosRead
CosReadConfigurationSettingOutput *readCfgOutput) {
if (readCfgInput != nullptr && readCfgInput->settingName != nullptr && readCfgInput->outPtr != nullptr &&
readCfgInput->outLen == 4) {
if (strncmp(readCfgInput->settingName, "PP_LogLevel", 12) == 0) {
memset(readCfgInput->outPtr, 0xFF, 4);
readCfgOutput->settingLen = 4;
if (strncmp(readCfgInput->settingName, "PP_LogLevel", 12) == 0 ||
strncmp(readCfgInput->settingName, "PP_LogSource", 13) == 0 ||
strncmp(readCfgInput->settingName, "PP_LogDestination", 18) == 0 ||
strncmp(readCfgInput->settingName, "PP_LogField", 12) == 0) {
*static_cast<UInt32 *>(readCfgInput->outPtr) = 0xFFFFFFFF;
if (readCfgOutput != nullptr) { readCfgOutput->settingLen = 4; }
return kCAILResultSuccess;
}
if (strncmp(readCfgInput->settingName, "PP_LogSource", 13) == 0) {
memset(readCfgInput->outPtr, 0xFF, 4);
readCfgOutput->settingLen = 4;
if (strncmp(readCfgInput->settingName, "PP_DumpRegister", 16) == 0 ||
strncmp(readCfgInput->settingName, "PP_DumpSMCTable", 16) == 0 ||
strncmp(readCfgInput->settingName, "PP_LogDumpTableBuffers", 23) == 0) {
*static_cast<UInt32 *>(readCfgInput->outPtr) = 1;
if (readCfgOutput != nullptr) { readCfgOutput->settingLen = 4; }
return kCAILResultSuccess;
}
}
Expand Down

0 comments on commit d72e42e

Please sign in to comment.