Ticket #8526: 9x-vs-NT.diff
File 9x-vs-NT.diff, 864 bytes (added by , 18 years ago) |
---|
-
config-manager.cpp
93 93 strcpy(configFile, DEFAULT_CONFIG_FILE); 94 94 #else 95 95 #if defined (WIN32) && !defined(_WIN32_WCE) && !defined(__SYMBIAN32__) 96 GetWindowsDirectory(configFile, MAXPATHLEN); 96 OSVERSIONINFO win32OsVersion; 97 GetVersionEx(&win32OsVersion); 98 if (win32OsVersion.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) 99 GetWindowsDirectory(configFile, MAXPATHLEN); 100 else { 101 GetEnvironmentVariable("USERPROFILE", configFile, sizeof(configFile)); 102 strcat(configFile, "\\ScummVM"); 103 } 97 104 strcat(configFile, "\\" DEFAULT_CONFIG_FILE); 98 105 #elif defined(PALMOS_MODE) 99 106 strcpy(configFile,"/PALM/Programs/ScummVM/" DEFAULT_CONFIG_FILE);