From 28445ff77a0cc82d29900a6e5867a0fa577f4275 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 14 Feb 2012 20:32:21 +0000 Subject: Fix save game directory behavior under Windows. Subversion-branch: /branches/v2-branch Subversion-revision: 2504 --- src/strife/m_saves.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/strife/m_saves.c') diff --git a/src/strife/m_saves.c b/src/strife/m_saves.c index 74717dbd..a4068c4f 100644 --- a/src/strife/m_saves.c +++ b/src/strife/m_saves.c @@ -430,6 +430,11 @@ char *M_SafeFilePath(const char *basepath, const char *newcomponent) int newstrlen = 0; char *newstr = NULL; + if (!strcmp(basepath, "")) + { + basepath = "."; + } + // Always throw in a slash. M_NormalizeSlashes will remove it in the case // that either basepath or newcomponent includes a redundant slash at the // end or beginning respectively. -- cgit v1.2.3