From 82123dacf8eb687c67f2c0bbacaa536a773aa7eb Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 10 Mar 2007 05:40:12 +0000 Subject: Ignore the HOME environment variable on Windows - just behave like Vanilla Doom. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 853 --- src/m_misc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/m_misc.c b/src/m_misc.c index 9aaa0322..6c4d6953 100644 --- a/src/m_misc.c +++ b/src/m_misc.c @@ -705,6 +705,10 @@ void M_LoadDefaults (void) void M_SetConfigDir(void) { +#ifndef _WIN32 + // Ignore the HOME environment variable on Windows - just behave + // like Vanilla Doom. + char *homedir; homedir = getenv("HOME"); @@ -724,6 +728,7 @@ void M_SetConfigDir(void) M_MakeDirectory(configdir); } else +#endif /* #ifndef _WIN32 */ { #ifdef _WIN32 //! -- cgit v1.2.3