+2017-04-26 Carl Hetherington <cth@carlh.net>
+
+ * Make a copy of the configuration, if it fails to load, before making new defaults.
+
2017-04-07 Carl Hetherington <cth@carlh.net>
* Make jump-to-content-start on selection in the content list
}
catch (...) {
if (have_existing ("config.xml")) {
+
+ /* Make a copy of the configuration */
+ try {
+ boost::filesystem::copy (path ("config.xml", false), path ("config.xml.backup", false));
+ boost::filesystem::copy (path ("cinemas.xml", false), path ("cinemas.xml.backup", false));
+ } catch (...) {}
+
/* We have a config file but it didn't load */
FailedToLoad ();
}