mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 00:30:38 +00:00
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:
parent
4962c3bf0b
commit
dd7333a2da
3 changed files with 96 additions and 80 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue