diff options
author | Simon Howard | 2009-06-07 17:53:25 +0000 |
---|---|---|
committer | Simon Howard | 2009-06-07 17:53:25 +0000 |
commit | 0e3e4653f8df775fdd41e18e956f465fd334f275 (patch) | |
tree | bc99a17572acae8809f694005cfabb8673de52d6 /src/m_config.c | |
parent | ef459ab99b18d26f502d423a31cd744f5bed6a88 (diff) | |
download | chocolate-doom-0e3e4653f8df775fdd41e18e956f465fd334f275.tar.gz chocolate-doom-0e3e4653f8df775fdd41e18e956f465fd334f275.tar.bz2 chocolate-doom-0e3e4653f8df775fdd41e18e956f465fd334f275.zip |
Use home dir to store configuration and savegames under Windows CE.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1573
Diffstat (limited to 'src/m_config.c')
-rw-r--r-- | src/m_config.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/m_config.c b/src/m_config.c index be329cba..5bc46ca3 100644 --- a/src/m_config.c +++ b/src/m_config.c @@ -1313,9 +1313,11 @@ void M_LoadDefaults (void) void M_SetConfigDir(void) { -#ifndef _WIN32 - // Ignore the HOME environment variable on Windows - just behave - // like Vanilla Doom. +#if !defined(_WIN32) || defined(_WIN32_WCE) + + // Configuration settings are stored in ~/.chocolate-doom/, + // except on Windows, where we behave like Vanilla Doom and + // save in the current directory. char *homedir; @@ -1338,7 +1340,7 @@ void M_SetConfigDir(void) else #endif /* #ifndef _WIN32 */ { -#ifdef _WIN32 +#if defined(_WIN32) && !defined(_WIN32_WCE) //! // @platform windows // @vanilla |