From 89f86ebc45c0f0375d55b4c56bf95dca6891426f Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sun, 19 Jun 2022 01:55:22 +0200 Subject: [PATCH] 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. --- radiant/environment.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); } -- 2.39.2