]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
radiant: rename AppData folder on Windows, also do not mixup with NRC
authorThomas Debesse <dev@illwieckz.net>
Sat, 18 Jun 2022 23:55:22 +0000 (01:55 +0200)
committerThomas Debesse <dev@illwieckz.net>
Sat, 18 Jun 2022 23:55:22 +0000 (01:55 +0200)
Configuration is now stored in %AppData%/NetRadiant
instead of %AppData%/NetRadiantSettings on Windows.

It's more consistent with the way of doing things
one windows and it also prevents to conflict with
NetRadiant Custom configuration.

radiant/environment.cpp

index ab3dc398cd889bfb883be1cf7c247166cf5f0d2d..f2315b85a743960d7acb2c5354c982f97916f5ff 100644 (file)
@@ -374,9 +374,13 @@ void environment_init( int argc, char const* argv[] ){
 
        if ( !portable_app_setup() ) {
                char *appdata = getenv( "APPDATA" );
+
                StringOutputStream home( 256 );
                home << PathCleaned( appdata );
-               home << "/NetRadiantSettings/";
+               home << "/";
+               home << RADIANT_NAME;
+               home << "/";
+
                Q_mkdir( home.c_str() );
                home_path = home.c_str();
        }