From 0ec386dc76a33476f84a5416ba15d963a77eeb8d Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 21 Jan 2003 22:19:07 +0000 Subject: [PATCH] create the demo path `properly' --- qw/source/sv_demo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qw/source/sv_demo.c b/qw/source/sv_demo.c index 38b531d20..ca8eb1219 100644 --- a/qw/source/sv_demo.c +++ b/qw/source/sv_demo.c @@ -1106,7 +1106,7 @@ SV_Record_f (void) sv_demoPrefix->string, SV_CleanName (Cmd_Argv (1)), sv_demoSuffix->string); - Sys_mkdir (va ("%s/%s", com_gamedir, sv_demoDir->string)); + COM_CreatePath (name->str); // open the demo file name->size += 4; @@ -1226,7 +1226,7 @@ SV_EasyRecord_f (void) dsprintf (name2, "%s/%s/%s%s%s", com_gamedir, sv_demoDir->string, sv_demoPrefix->string, SV_CleanName (name->str), sv_demoSuffix->string); - Sys_mkdir (va ("%s/%s", com_gamedir, sv_demoDir->string)); + COM_CreatePath (name2->str); // find a filename that doesn't exist yet dsprintf (name, "%s", name2->str);