recording: added new log sources

This commit is contained in:
Tyler Wilding 2018-07-02 20:41:50 -04:00 committed by lightningterror
parent e3333a9b8c
commit 407224d29c
2 changed files with 17 additions and 1 deletions

View File

@ -295,6 +295,11 @@ static ConsoleLogSource* const ConLogSources[] =
(ConsoleLogSource*)&pxConLog_Event,
(ConsoleLogSource*)&pxConLog_Thread,
(ConsoleLogSource*)&SysConsole.sysoutConsole
NULL,
#ifndef DISABLE_RECORDING
(ConsoleLogSource*)&SysConsole.recordingConsole,
(ConsoleLogSource*)&SysConsole.controlInfo,
#endif
};
// WARNING ConsoleLogSources & ConLogDefaults must have the same size
@ -308,6 +313,11 @@ static const bool ConLogDefaults[] =
false,
false,
false,
false,
#ifndef DISABLE_RECORDING
false,
false,
#endif
false
};
@ -339,7 +349,6 @@ void ConLog_LoadSaveSettings( IniInterface& ini )
ConLogInitialized = true;
}
// --------------------------------------------------------------------------------------
// ConsoleLogFrame (implementations)
// --------------------------------------------------------------------------------------
@ -565,6 +574,11 @@ void ConsoleLogFrame::OnLoggingChanged()
}
}
void ConsoleLogFrame::UpdateLogList()
{
OnLoggingChanged();
}
// Implementation note: Calls SetColor and Write( text ). Override those virtuals
// and this one will magically follow suite. :)
bool ConsoleLogFrame::Write( ConsoleColors color, const wxString& text )

View File

@ -191,6 +191,8 @@ public:
bool Write( ConsoleColors color, const wxString& text );
bool Newline();
void UpdateLogList();
protected:
// menu callbacks
void OnOpen (wxCommandEvent& event);