]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/preferences.cpp
* improved quake2 support by added a quake2 boolean to the CGameDescription class...
[xonotic/netradiant.git] / radiant / preferences.cpp
index 2e59e0f98476e84ac1d767e52db0e65773a6d3e7..88fb4fe450c30e2ab4ff4e78afbdd974dd134647 100644 (file)
@@ -746,6 +746,18 @@ CGameDescription::CGameDescription(xmlDocPtr pDoc, const Str &GameFile)
 
   mGameFile = GameFile;
 
+  prop = (char*)xmlGetProp(pNode, (xmlChar*)"quake2");
+  if (prop == NULL)
+  {
+    // default
+    quake2 = false;
+  }
+  else
+  {
+    quake2 = true;
+    xmlFree(prop);
+  }
+
   prop = (char*)xmlGetProp(pNode, (xmlChar*)"basegame");
   if (prop == NULL)
   {
@@ -3222,6 +3234,7 @@ void CGameInstall::Run() {
        fprintf( fg, "  name=\"%s\"\n", m_strName.GetBuffer() );
        fprintf( fg, "  gametools=\"%sgames\"\n", g_strAppPath.GetBuffer() );
        fprintf( fg, "  enginepath=\"%s\"\n", m_strEngine.GetBuffer() );
+       fprintf( fg, "  prefix=\".q3a\"\n" ); 
        switch ( m_availGames[ m_nComboSelect ] ) {
        case GAME_Q3: {
                Str source = g_strAppPath.GetBuffer();