[Project64] Add RomList logging information
This commit is contained in:
parent
2d76718d35
commit
7fec071afc
|
@ -68,6 +68,7 @@ void SetTraceModuleNames(void)
|
|||
TraceSetModuleName(TraceTLB, "TLB");
|
||||
TraceSetModuleName(TraceProtectedMem, "Protected Memory");
|
||||
TraceSetModuleName(TraceUserInterface, "User Interface");
|
||||
TraceSetModuleName(TraceRomList, "Rom List");
|
||||
}
|
||||
|
||||
void UpdateTraceLevel(void * /*NotUsed*/)
|
||||
|
@ -90,6 +91,7 @@ void UpdateTraceLevel(void * /*NotUsed*/)
|
|||
g_ModuleLogLevel[TraceTLB] = (uint8_t)g_Settings->LoadDword(Debugger_TraceTLB);
|
||||
g_ModuleLogLevel[TraceProtectedMem] = (uint8_t)g_Settings->LoadDword(Debugger_TraceProtectedMEM);
|
||||
g_ModuleLogLevel[TraceUserInterface] = (uint8_t)g_Settings->LoadDword(Debugger_TraceUserInterface);
|
||||
g_ModuleLogLevel[TraceRomList] = (uint8_t)g_Settings->LoadDword(Debugger_TraceRomList);
|
||||
}
|
||||
|
||||
void SetupTrace(void)
|
||||
|
@ -114,6 +116,7 @@ void SetupTrace(void)
|
|||
g_Settings->RegisterChangeCB(Debugger_TraceTLB, NULL, (CSettings::SettingChangedFunc)UpdateTraceLevel);
|
||||
g_Settings->RegisterChangeCB(Debugger_TraceProtectedMEM, NULL, (CSettings::SettingChangedFunc)UpdateTraceLevel);
|
||||
g_Settings->RegisterChangeCB(Debugger_TraceUserInterface, NULL, (CSettings::SettingChangedFunc)UpdateTraceLevel);
|
||||
g_Settings->RegisterChangeCB(Debugger_TraceRomList, NULL, (CSettings::SettingChangedFunc)UpdateTraceLevel);
|
||||
g_Settings->RegisterChangeCB(Debugger_AppLogFlush, g_LogFile, (CSettings::SettingChangedFunc)LogFlushChanged);
|
||||
UpdateTraceLevel(NULL);
|
||||
|
||||
|
@ -142,6 +145,7 @@ void CleanupTrace(void)
|
|||
g_Settings->UnregisterChangeCB(Debugger_TraceTLB, NULL, (CSettings::SettingChangedFunc)UpdateTraceLevel);
|
||||
g_Settings->UnregisterChangeCB(Debugger_TraceProtectedMEM, NULL, (CSettings::SettingChangedFunc)UpdateTraceLevel);
|
||||
g_Settings->UnregisterChangeCB(Debugger_TraceUserInterface, NULL, (CSettings::SettingChangedFunc)UpdateTraceLevel);
|
||||
g_Settings->UnregisterChangeCB(Debugger_TraceRomList, NULL, (CSettings::SettingChangedFunc)UpdateTraceLevel);
|
||||
g_Settings->UnregisterChangeCB(Debugger_AppLogFlush, g_LogFile, (CSettings::SettingChangedFunc)LogFlushChanged);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue