From 7418c509072f68d1cfb77dab863ef3396a5d20db Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Thu, 13 Jul 2017 17:15:32 +0200 Subject: [PATCH] Drop Windows 9x support MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - Windows 98 was using `%windir%\Application Data` without defining `%APPDATA%` - Writing user config in `C:\netradiant` looked fine on single user OS driving FAT file system - We can't build for Windows platforms that does not support `%APPDATA%` - Windows XP Schrödinger edition is able to define `%APPDATA%` while being dead at the same time - Even ReactOS 3.11 for Workgroups defines `%APPDATA%` - Wine defines `%APPDATA%` like a boss - Twenty first century is now a thing - NetRadiant will never run on OpenGEM/FreeDOS (and that's a shame) --- radiant/environment.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/radiant/environment.cpp b/radiant/environment.cpp index 81face07..60100cec 100644 --- a/radiant/environment.cpp +++ b/radiant/environment.cpp @@ -292,15 +292,7 @@ void environment_init( int argc, char const* argv[] ){ if ( !portable_app_setup() ) { char *appdata = getenv( "APPDATA" ); StringOutputStream home( 256 ); - if ( !appdata || string_empty( appdata ) ) { - ERROR_MESSAGE( "Application Data folder not available.\n" - "Radiant will use C:\\ for user preferences.\n" ); - home << "C:"; - } - else - { - home << PathCleaned( appdata ); - } + home << PathCleaned( appdata ); home << "/NetRadiantSettings/"; Q_mkdir( home.c_str() ); home_path = home.c_str(); -- 2.39.2