cd_linux.c: whitespace.

quakefs.c: -game n[,n ...] support.
snd_oss.c: Compilation support for OSS on BSD systems.
This commit is contained in:
Jeff Teunissen 2000-10-10 21:45:07 +00:00
parent 4962c3bf0b
commit dd7333a2da
3 changed files with 96 additions and 80 deletions

View file

@ -1038,8 +1038,19 @@ COM_InitFilesystem ( void )
}
if ((i = COM_CheckParm ("-game")) && i < com_argc - 1) {
COM_CreateGameDirectory(com_argv[i+1]);
}
char *gamedirs = NULL;
char *where;
gamedirs = strdup (com_argv[i+1]);
where = strtok (gamedirs, ",");
while (where) {
where = strtok (NULL, ",");
if (where) {
COM_CreateGameDirectory (where);
}
}
free (gamedirs);
}
// any set gamedirs will be freed up to here
com_base_searchpaths = com_searchpaths;