mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
tier1: rewrite Sys_LoadModule
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user