mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Redirected CEFDebugLog.txt.
For #215. I can't seem to disable locale loading without also causing red backrounds, so it looks like I'll need to also delete the folders CEF generates after each run.
This commit is contained in:
+2
-15
@@ -49,25 +49,12 @@ CefSettings GetCefSettings() {
|
||||
//Disable CEF command line args.
|
||||
cef_settings.command_line_args_disabled = true;
|
||||
|
||||
// Don't set CEF locale, as it tries to load resources and crashes
|
||||
// if they can't be found.
|
||||
/*if (_settings["language"]) {
|
||||
loot::Language lang(_settings["language"].as<string>());
|
||||
CefString(&cef_settings.locale).FromString(lang.Locale());
|
||||
}*/
|
||||
|
||||
// Set CEF logging.
|
||||
CefString(&cef_settings.log_file).FromString("CEFDebugLog.txt");
|
||||
/*if (!_settings["debugVerbosity"] || _settings["debugVerbosity"].as<unsigned int>() == 0)
|
||||
cef_settings.log_severity = LOGSEVERITY_DISABLE;
|
||||
*/
|
||||
CefString(&cef_settings.log_file).FromString((g_path_local / "CEFDebugLog.txt").string());
|
||||
|
||||
// Enable remote debugging.
|
||||
//cef_settings.single_process = true;
|
||||
cef_settings.remote_debugging_port = 8080;
|
||||
|
||||
// Use cef_settings.resources_dir_path to specify Resources folder path.
|
||||
// Use cef_settings.locales_dir_path to specify locales folder path.
|
||||
|
||||
return cef_settings;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user