summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
Diffstat (limited to 'setup')
-rw-r--r--setup/configfile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/setup/configfile.c b/setup/configfile.c
index 8a3f700b..f2ec8d3d 100644
--- a/setup/configfile.c
+++ b/setup/configfile.c
@@ -80,6 +80,10 @@ void M_MakeDirectory(char *path)
void M_SetConfigDir(void)
{
+#ifndef _WIN32
+ // Ignore the HOME environment variable on Windows - just behave
+ // like Vanilla Doom.
+
char *homedir;
homedir = getenv("HOME");
@@ -98,6 +102,7 @@ void M_SetConfigDir(void)
M_MakeDirectory(configdir);
}
else
+#endif /* #ifndef _WIN32 */
{
#ifdef _WIN32
// when given the -cdrom option, save config+savegames in