From e7c41759fbbf863ab7938c39c03e3a5e7aab29ac Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 22 Jul 2023 06:39:23 +0300 Subject: [PATCH] Revert "filesystem: allow to reference game libraries in different case" This reverts commit 43fde38d8842f78b93598eca392498f6a7f74311. --- filesystem/filesystem.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/filesystem/filesystem.c b/filesystem/filesystem.c index b129b97d..6a083af7 100644 --- a/filesystem/filesystem.c +++ b/filesystem/filesystem.c @@ -1261,7 +1261,6 @@ search for library, assume index is valid */ static qboolean FS_FindLibrary( const char *dllname, qboolean directpath, fs_dllinfo_t *dllInfo ) { - string fixedname; searchpath_t *search; int index, start = 0, i, len; @@ -1287,7 +1286,7 @@ static qboolean FS_FindLibrary( const char *dllname, qboolean directpath, fs_dll COM_DefaultExtension( dllInfo->shortPath, "."OS_LIB_EXT, sizeof( dllInfo->shortPath )); // apply ext if forget - search = FS_FindFile( dllInfo->shortPath, &index, fixedname, sizeof( fixedname ), false ); + search = FS_FindFile( dllInfo->shortPath, &index, NULL, 0, false ); if( !search && !directpath ) { @@ -1295,12 +1294,10 @@ static qboolean FS_FindLibrary( const char *dllname, qboolean directpath, fs_dll // trying check also 'bin' folder for indirect paths Q_strncpy( dllInfo->shortPath, dllname, sizeof( dllInfo->shortPath )); - search = FS_FindFile( dllInfo->shortPath, &index, fixedname, sizeof( fixedname ), false ); + search = FS_FindFile( dllInfo->shortPath, &index, NULL, 0, false ); if( !search ) return false; // unable to find } - Q_strncpy( dllInfo->shortPath, fixedname, sizeof( dllInfo->shortPath )); - dllInfo->encrypted = FS_CheckForCrypt( dllInfo->shortPath ); if( index >= 0 && !dllInfo->encrypted && search )