core/smn_core.cpp
changeset 1573 979f2ccfee5a
parent 1458 be64f55b7ac5
child 1798 f62bedffc279
     1.1 --- a/core/smn_core.cpp	Mon Oct 15 04:06:57 2007 +0000
     1.2 +++ b/core/smn_core.cpp	Mon Oct 15 04:27:56 2007 +0000
     1.3 @@ -463,7 +463,17 @@
     1.4  	char *str;
     1.5  	pContext->LocalToString(params[1], &str);
     1.6  
     1.7 -	return g_PluginSys.LibraryExists(str) ? 1 : 0;
     1.8 +	if (g_PluginSys.LibraryExists(str))
     1.9 +	{
    1.10 +		return 1;
    1.11 +	}
    1.12 +
    1.13 +	if (g_Extensions.LibraryExists(str))
    1.14 +	{
    1.15 +		return 1;
    1.16 +	}
    1.17 +
    1.18 +	return 0;
    1.19  }
    1.20  
    1.21  static cell_t sm_LogAction(IPluginContext *pContext, const cell_t *params)