tier1: rewrite Sys_LoadModule

This commit is contained in:
nillerusr
2022-10-08 22:14:26 +03:00
parent 653e08bce4
commit e5eaf0fa9e
3 changed files with 71 additions and 39 deletions
+2 -9
View File
@@ -5042,10 +5042,11 @@ CSysModule *CBaseFileSystem::LoadModule( const char *pFileName, const char *pPat
char tempPathID[ MAX_PATH ];
ParsePathID( pFileName, pPathID, tempPathID );
CUtlSymbol lookup = g_PathIDTable.AddString( pPathID );
// a pathID has been specified, find the first match in the path list
#ifndef ANDROID
int c = m_SearchPaths.Count();
for ( int i = 0; i < c; i++ )
{
@@ -5071,14 +5072,6 @@ CSysModule *CBaseFileSystem::LoadModule( const char *pFileName, const char *pPat
return pModule;
#endif
}
#ifdef POSIX
if( !pModule )
{
Q_snprintf( tempPathID, sizeof(tempPathID), "lib%s", pFileName );
pModule = Sys_LoadModule( tempPathID );
}
#endif
if( !pModule )