src/config.cpp

changeset 300
0c7e00cc3d44
parent 299
db60288fc36a
child 319
d0f41342ef51
--- a/src/config.cpp	Fri Jun 21 17:52:44 2013 +0300
+++ b/src/config.cpp	Fri Jun 21 18:41:44 2013 +0300
@@ -121,6 +121,8 @@
 	return true;
 }
 
+extern_cfg (str, io_ldpath);
+
 // =============================================================================
 // Save the configuration to disk
 bool config::save () {
@@ -148,9 +150,12 @@
 	fprint (f, "# Configuration file for " APPNAME "\n");
 	
 	for (config* cfg : g_configPointers) {
-		if (!cfg || cfg->isDefault ())
+		if (!cfg)
 			break;
 		
+		if (cfg->isDefault ())
+			continue;
+		
 		str valstring;
 		switch (cfg->getType ()) {
 		case CONFIG_int:

mercurial