]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/map.cpp
radiant/q3map2: add option to disable engine path and home path
[xonotic/netradiant.git] / radiant / map.cpp
index 3f61f2ce7a59d7649611892c63611e4731726c56..5c91dfad8e183cec87712f376b31d2cf48dd2998 100644 (file)
@@ -1551,6 +1551,15 @@ tryDecompile:
                        }
                }
 
+               // extra switches
+               if ( g_disableEnginePath ) {
+                       output.push_string( " -fs_nobasepath " );
+               }
+
+               if ( g_disableHomePath ) {
+                       output.push_string( " -fs_nohomepath " );
+               }
+
                output.push_string( " -fs_game " );
                output.push_string( gamename_get() );
                output.push_string( " -convert -format " );