From: Thomas Debesse Date: Sat, 18 Jun 2022 23:55:22 +0000 (+0200) Subject: radiant: rename AppData folder on Windows, also do not mixup with NRC X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=89f86ebc45c0f0375d55b4c56bf95dca6891426f;p=xonotic%2Fnetradiant.git radiant: rename AppData folder on Windows, also do not mixup with NRC 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. --- diff --git a/radiant/environment.cpp b/radiant/environment.cpp index ab3dc398..f2315b85 100644 --- a/radiant/environment.cpp +++ b/radiant/environment.cpp @@ -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(); }