mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-05-31 00:51:06 +00:00
common.c (searchpath_t): Added new member `path_id', an unsigned
int identifier assigned to the game directory. Remember that main <install_dir>/game1 and the unix <userdir>/game1 have the same id. The id starts as 1 for the first data1 directory. For every new directory, the value is the left-shifted version of the previous one. Made COM_FindFile() to accept a path_id pointer argument and storing the id in it if it isn't NULL. Made COM_OpenFile(), COM_FOpenFile() and all COM_Load* functions to accept a path_id pointer argument similarly. Adjusted callers accordingly. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@370 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
e28dfd7d70
commit
c583b5b541
14 changed files with 77 additions and 47 deletions
|
@ -113,7 +113,7 @@ sfxcache_t *S_LoadSound (sfx_t *s)
|
|||
|
||||
// Con_Printf ("loading %s\n",namebuffer);
|
||||
|
||||
data = COM_LoadStackFile(namebuffer, stackbuf, sizeof(stackbuf));
|
||||
data = COM_LoadStackFile(namebuffer, stackbuf, sizeof(stackbuf), NULL);
|
||||
|
||||
if (!data)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue