Commit 7418c509 authored by Thomas Debesse's avatar Thomas Debesse

Drop Windows 9x support

- 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)
parent fda16399
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment