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:
WrinklyNinja
2014-08-17 10:09:35 +01:00
parent 0c8a2fc748
commit 0e2cabaae4
+2 -15
View File
@@ -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;
}