Don't load .pk3s as .dlls, and don't load user config files from .pk3s.
This commit is contained in:
1 parent
cd41690fc3
commit
376267d534
3 files changed
+15
-2
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user