From: Thomas Debesse Date: Mon, 20 Jun 2022 04:00:15 +0000 (+0200) Subject: Add uncommited change from db0e95d2 (merge c5065eec/f6b9708d) X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=04a6c52deb66bb50a78ca683d40af0a265236c47;p=xonotic%2Fnetradiant.git Add uncommited change from db0e95d2 (merge c5065eec/f6b9708d) --- diff --git a/radiant/qe3.cpp b/radiant/qe3.cpp index 69cf4c06..ab62a919 100644 --- a/radiant/qe3.cpp +++ b/radiant/qe3.cpp @@ -101,7 +101,7 @@ void QE_InitVFS(){ if ( !string_equal( homepath, enginepath ) ) { // ~/./ - 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 ) ) { // ~/./ - 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() );