2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-12-23 09:16:04 +01:00

filesystem: check only DLLs for encryption

This commit is contained in:
Alibek Omarov 2022-12-04 06:15:44 +03:00
parent a19270a0dc
commit 9381a40506

View File

@ -1266,6 +1266,10 @@ static qboolean FS_CheckForCrypt( const char *dllname )
file_t *f;
int key;
// this encryption is specific to DLLs
if( Q_stricmp( COM_FileExtension( dllname ), "dll" ))
return false;
f = FS_Open( dllname, "rb", false );
if( !f ) return false;