]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/qe3.cpp
Radiant:
[xonotic/netradiant.git] / radiant / qe3.cpp
index 1bce60b9a38acb676709ad12a4edcefa765c3a2d..82d5d85571d3233f08fbffaffa78741547ef181c 100644 (file)
@@ -83,7 +83,7 @@ void QE_InitVFS(){
        // if we have a mod dir
        if ( !string_equal( gamename, basegame ) ) {
                // ~/.<gameprefix>/<fs_game>
-               if ( userRoot ) {
+               if ( userRoot && !string_equal( globalRoot, userRoot ) ) {
                        StringOutputStream userGamePath( 256 );
                        userGamePath << userRoot << gamename << '/';
                        GlobalFileSystem().initDirectory( userGamePath.c_str() );
@@ -98,7 +98,7 @@ void QE_InitVFS(){
        }
 
        // ~/.<gameprefix>/<fs_main>
-       if ( userRoot ) {
+       if ( userRoot && !string_equal( globalRoot, userRoot ) ) {
                StringOutputStream userBasePath( 256 );
                userBasePath << userRoot << basegame << '/';
                GlobalFileSystem().initDirectory( userBasePath.c_str() );