diff options
author | Simon Howard | 2011-09-05 22:30:09 +0000 |
---|---|---|
committer | Simon Howard | 2011-09-05 22:30:09 +0000 |
commit | a74c5e46b0cd578880f9fcbb45e6c3ef26d1c941 (patch) | |
tree | faa8386f50b8309b873651240f8f54f2e034ade4 /src | |
parent | 5d82119ccad9476d5db479f81952e56cef0e1751 (diff) | |
download | chocolate-doom-a74c5e46b0cd578880f9fcbb45e6c3ef26d1c941.tar.gz chocolate-doom-a74c5e46b0cd578880f9fcbb45e6c3ef26d1c941.tar.bz2 chocolate-doom-a74c5e46b0cd578880f9fcbb45e6c3ef26d1c941.zip |
Place Hexen savegames in configdir/savegames/hexen.wad/ rather than
configdir/hexndata/, to be in line with Doom / Heretic behavior.
Subversion-branch: /branches/raven-branch
Subversion-revision: 2362
Diffstat (limited to 'src')
-rw-r--r-- | src/hexen/h2_main.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/hexen/h2_main.c b/src/hexen/h2_main.c index 4f9fe312..c78d662a 100644 --- a/src/hexen/h2_main.c +++ b/src/hexen/h2_main.c @@ -184,8 +184,17 @@ void D_BindVariables(void) static void D_SetDefaultSavePath(void) { - SavePath = malloc(strlen(configdir) + 10); - sprintf(SavePath, "%shexndata%c", configdir, DIR_SEPARATOR); + SavePath = M_GetSaveGameDir("hexen.wad"); + + // If we are not using a savegame path (probably because we are on + // Windows and not using a config dir), behave like Vanilla Hexen + // and use hexndata/: + + if (!strcmp(SavePath, "")) + { + SavePath = malloc(10); + sprintf(SavePath, "hexndata%c", DIR_SEPARATOR); + } } // |