]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/preferences.cpp
* introduced a new config variable to be able to load maps directly from the enginePa...
[xonotic/netradiant.git] / radiant / preferences.cpp
index 6c3af47c470232847618093c0de0aec7e0f841b2..709642082b2f281ad583fc590120ea6283a27da3 100644 (file)
@@ -759,6 +759,20 @@ CGameDescription::CGameDescription(xmlDocPtr pDoc, const Str &GameFile)
     xmlFree(prop);
   }
 
+  // if this is set, the open maps dialoge will open the engine path not the
+  // home dir for map loading and saving
+  prop = (char*)xmlGetProp(pNode, (xmlChar*)"no_maps_in_home");
+  if (prop == NULL)
+  {
+    // default
+    noMapsInHome = false;
+  }
+  else
+  {
+    noMapsInHome = true;
+    xmlFree(prop);
+  }
+
   prop = (char*)xmlGetProp(pNode, (xmlChar*)"basegame");
   if (prop == NULL)
   {