summaryrefslogtreecommitdiff
path: root/src/hexen/h2_main.c
diff options
context:
space:
mode:
authorSimon Howard2011-09-11 23:40:44 +0000
committerSimon Howard2011-09-11 23:40:44 +0000
commitefd15d965dee947a04727bb62f4e2092cf28732f (patch)
tree730d99c1e88d5e3145e552ad69dec52d30026d01 /src/hexen/h2_main.c
parent4d17ab361e90a75dc6deefd37e6eb2ba0610b386 (diff)
parent11024d8214580d63ca7a9e70a121f5ff542a2fce (diff)
downloadchocolate-doom-efd15d965dee947a04727bb62f4e2092cf28732f.tar.gz
chocolate-doom-efd15d965dee947a04727bb62f4e2092cf28732f.tar.bz2
chocolate-doom-efd15d965dee947a04727bb62f4e2092cf28732f.zip
Merge from raven-branch.
Subversion-branch: /branches/strife-branch Subversion-revision: 2367
Diffstat (limited to 'src/hexen/h2_main.c')
-rw-r--r--src/hexen/h2_main.c13
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);
+ }
}
//