]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
Add uncommited change from db0e95d2 (merge c5065eec/f6b9708d)
authorThomas Debesse <dev@illwieckz.net>
Mon, 20 Jun 2022 04:00:15 +0000 (06:00 +0200)
committerThomas Debesse <dev@illwieckz.net>
Mon, 20 Jun 2022 04:01:54 +0000 (06:01 +0200)
radiant/qe3.cpp

index 69cf4c064c9ae12fbf46063cf0549ee6736d7a6f..ab62a9190bc28f35d1307ad04e8dcf2686ea4531 100644 (file)
@@ -101,7 +101,7 @@ void QE_InitVFS(){
                if ( !string_equal( homepath, enginepath ) )
                {
                // ~/.<gameprefix>/<fs_game>
-               if ( userRoot && !string_equal( globalRoot, homepath ) && !g_disableHomePath ) {
+               if ( homepath && !string_equal( enginepath, homepath ) && !g_disableHomePath ) {
                        StringOutputStream userGamePath( 256 );
                                userGamePath << homepath << gamename << '/';
                        GlobalFileSystem().initDirectory( userGamePath.c_str() );
@@ -120,7 +120,7 @@ void QE_InitVFS(){
        if ( !string_equal( homepath, enginepath ) )
        {
        // ~/.<gameprefix>/<fs_main>
-       if ( userRoot && !string_equal( globalRoot, homepath ) && !g_disableHomePath ) {
+       if ( homepath && !string_equal( enginepath, homepath ) && !g_disableHomePath ) {
                StringOutputStream userBasePath( 256 );
                        userBasePath << homepath << basegame << '/';
                GlobalFileSystem().initDirectory( userBasePath.c_str() );