mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
Logging: Remove duplicated code
This commit is contained in:
@ -100,8 +100,10 @@ LogManager::LogManager()
|
||||
IniFile::Section* options = ini.GetOrCreateSection("Options");
|
||||
bool write_file;
|
||||
bool write_console;
|
||||
bool write_window;
|
||||
options->Get("WriteToFile", &write_file, false);
|
||||
options->Get("WriteToConsole", &write_console, true);
|
||||
options->Get("WriteToWindow", &write_window, true);
|
||||
|
||||
// Set up log listeners
|
||||
int verbosity;
|
||||
@ -123,6 +125,8 @@ LogManager::LogManager()
|
||||
container->AddListener(LogListener::FILE_LISTENER);
|
||||
if (enable && write_console)
|
||||
container->AddListener(LogListener::CONSOLE_LISTENER);
|
||||
if (enable && write_window)
|
||||
container->AddListener(LogListener::LOG_WINDOW_LISTENER);
|
||||
}
|
||||
|
||||
m_path_cutoff_point = DeterminePathCutOffPoint();
|
||||
|
Reference in New Issue
Block a user