Don't load .pk3s as .dlls, and don't load user config files from .pk3s.
This commit is contained in:
parent
cd41690fc3
commit
376267d534
3 changed files with 15 additions and 2 deletions
|
@ -1364,12 +1364,18 @@ long FS_FOpenFileRead(const char *filename, fileHandle_t *file, qboolean uniqueF
|
|||
{
|
||||
searchpath_t *search;
|
||||
long len;
|
||||
qboolean isLocalConfig;
|
||||
|
||||
if(!fs_searchpaths)
|
||||
Com_Error(ERR_FATAL, "Filesystem call made without initialization");
|
||||
|
||||
isLocalConfig = !strcmp(filename, "autoexec.cfg") || !strcmp(filename, Q3CONFIG_CFG);
|
||||
for(search = fs_searchpaths; search; search = search->next)
|
||||
{
|
||||
// autoexec.cfg and q3config.cfg can only be loaded outside of pk3 files.
|
||||
if (isLocalConfig && search->pack)
|
||||
continue;
|
||||
|
||||
len = FS_FOpenFileReadDir(filename, search, file, uniqueFILE, qfalse);
|
||||
|
||||
if(file == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue