summaryrefslogtreecommitdiff
path: root/src/lib/config.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/config.cc')
-rw-r--r--src/lib/config.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc
index 267831341..e07be6b3d 100644
--- a/src/lib/config.cc
+++ b/src/lib/config.cc
@@ -222,6 +222,7 @@ Config::set_defaults()
_player_http_server_port = 8080;
_relative_paths = false;
_layout_for_short_screen = false;
+ _enable_crash_reporting = false;
_allowed_dcp_frame_rates.clear();
_allowed_dcp_frame_rates.push_back(24);
@@ -668,6 +669,7 @@ try
_player_http_server_port = f.optional_number_child<int>("PlayerHTTPServerPort").get_value_or(8080);
_relative_paths = f.optional_bool_child("RelativePaths").get_value_or(false);
_layout_for_short_screen = f.optional_bool_child("LayoutForShortScreen").get_value_or(false);
+ _enable_crash_reporting = f.optional_bool_child("EnableCrashReporting").get_value_or(false);
#ifdef DCPOMATIC_GROK
if (auto grok = f.optional_node_child("Grok")) {
@@ -1157,6 +1159,8 @@ Config::write_config() const
cxml::add_text_child(root, "RelativePaths", _relative_paths ? "1" : "0");
/* [XML] LayoutForShortScreen 1 to set up DCP-o-matic as if the screen were less than 800 pixels high */
cxml::add_text_child(root, "LayoutForShortScreen", _layout_for_short_screen ? "1" : "0");
+ /* [XML] EnableCrashReporting 1 to make DCP-o-matic automatically upload crash reports for analysis */
+ cxml::add_text_child(root, "EnableCrashReporting", _enable_crash_reporting ? "1" : "0");
#ifdef DCPOMATIC_GROK
_grok.as_xml(cxml::add_child(root, "Grok"));