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
|
@ -500,6 +500,13 @@ void *Sys_LoadDll(const char *name, qboolean useSystemLib)
|
|||
{
|
||||
void *dllhandle;
|
||||
|
||||
// Don't load any DLLs that end with the pk3 extension
|
||||
if (COM_CompareExtension(name, ".pk3"))
|
||||
{
|
||||
Com_Printf("Rejecting DLL named \"%s\"", name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if(useSystemLib)
|
||||
Com_Printf("Trying to load \"%s\"...\n", name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue