Don't load .pk3s as .dlls, and don't load user config files from .pk3s.

This commit is contained in:
SmileTheory 2017-03-13 14:14:00 -07:00
parent cd41690fc3
commit 376267d534
3 changed files with 15 additions and 2 deletions

View file

@ -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);