fix some problems with directories being created in the wrong places or not at all (caused by fs_userpath not being used when it should)

This commit is contained in:
Bill Currie 2000-05-23 01:44:20 +00:00
parent 91a47e083c
commit 8ff75f94dc
3 changed files with 12 additions and 7 deletions

View file

@ -325,6 +325,7 @@ COM_CreatePath ( char *path )
*ofs = '/';
}
}
Sys_mkdir (path);
}
@ -890,12 +891,18 @@ COM_InitFilesystem ( void )
/*
start up with BASEGAME by default
*/
COM_CreatePath (va("%s/%s",fs_userpath->string,BASEGAME));
COM_AddGameDirectory (BASEGAME);
if (hipnotic)
if (hipnotic) {
COM_CreatePath (va("%s/%s",fs_userpath->string,"hipnotic"));
COM_AddGameDirectory ("hipnotic");
if (rogue)
}
if (rogue) {
COM_CreatePath (va("%s/%s",fs_userpath->string,"rogue"));
COM_AddGameDirectory ("rogue");
}
COM_CreatePath (va("%s/qw",fs_userpath->string));
COM_AddGameDirectory ("qw");
// any set gamedirs will be freed up to here