fixed modules problems when declared also in metamod's plugins.ini
This commit is contained in:
parent
820fedca22
commit
77c5198009
|
@ -2296,6 +2296,11 @@ C_DLLEXPORT int Meta_Query(char *ifvers, plugin_info_t **pPlugInfo, mutil_funcs_
|
||||||
|
|
||||||
C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME now, META_FUNCTIONS *pFunctionTable, meta_globals_t *pMGlobals, gamedll_funcs_t *pGamedllFuncs)
|
C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME now, META_FUNCTIONS *pFunctionTable, meta_globals_t *pMGlobals, gamedll_funcs_t *pGamedllFuncs)
|
||||||
{
|
{
|
||||||
|
if ( gpGamedllFuncs ){
|
||||||
|
LOG_ERROR(PLID,"gpGamedllFuncs already set");
|
||||||
|
return(FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
if(now > Plugin_info.loadable) {
|
if(now > Plugin_info.loadable) {
|
||||||
LOG_ERROR(PLID, "Can't load module right now");
|
LOG_ERROR(PLID, "Can't load module right now");
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
|
|
|
@ -2296,6 +2296,11 @@ C_DLLEXPORT int Meta_Query(char *ifvers, plugin_info_t **pPlugInfo, mutil_funcs_
|
||||||
|
|
||||||
C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME now, META_FUNCTIONS *pFunctionTable, meta_globals_t *pMGlobals, gamedll_funcs_t *pGamedllFuncs)
|
C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME now, META_FUNCTIONS *pFunctionTable, meta_globals_t *pMGlobals, gamedll_funcs_t *pGamedllFuncs)
|
||||||
{
|
{
|
||||||
|
if ( gpGamedllFuncs ){
|
||||||
|
LOG_ERROR(PLID,"gpGamedllFuncs already set");
|
||||||
|
return(FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
if(now > Plugin_info.loadable) {
|
if(now > Plugin_info.loadable) {
|
||||||
LOG_ERROR(PLID, "Can't load module right now");
|
LOG_ERROR(PLID, "Can't load module right now");
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
|
|
|
@ -2296,6 +2296,11 @@ C_DLLEXPORT int Meta_Query(char *ifvers, plugin_info_t **pPlugInfo, mutil_funcs_
|
||||||
|
|
||||||
C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME now, META_FUNCTIONS *pFunctionTable, meta_globals_t *pMGlobals, gamedll_funcs_t *pGamedllFuncs)
|
C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME now, META_FUNCTIONS *pFunctionTable, meta_globals_t *pMGlobals, gamedll_funcs_t *pGamedllFuncs)
|
||||||
{
|
{
|
||||||
|
if ( gpGamedllFuncs ){
|
||||||
|
LOG_ERROR(PLID,"gpGamedllFuncs already set");
|
||||||
|
return(FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
if(now > Plugin_info.loadable) {
|
if(now > Plugin_info.loadable) {
|
||||||
LOG_ERROR(PLID, "Can't load module right now");
|
LOG_ERROR(PLID, "Can't load module right now");
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
|
|
|
@ -2296,6 +2296,11 @@ C_DLLEXPORT int Meta_Query(char *ifvers, plugin_info_t **pPlugInfo, mutil_funcs_
|
||||||
|
|
||||||
C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME now, META_FUNCTIONS *pFunctionTable, meta_globals_t *pMGlobals, gamedll_funcs_t *pGamedllFuncs)
|
C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME now, META_FUNCTIONS *pFunctionTable, meta_globals_t *pMGlobals, gamedll_funcs_t *pGamedllFuncs)
|
||||||
{
|
{
|
||||||
|
if ( gpGamedllFuncs ){
|
||||||
|
LOG_ERROR(PLID,"gpGamedllFuncs already set");
|
||||||
|
return(FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
if(now > Plugin_info.loadable) {
|
if(now > Plugin_info.loadable) {
|
||||||
LOG_ERROR(PLID, "Can't load module right now");
|
LOG_ERROR(PLID, "Can't load module right now");
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
|
|
|
@ -2296,6 +2296,11 @@ C_DLLEXPORT int Meta_Query(char *ifvers, plugin_info_t **pPlugInfo, mutil_funcs_
|
||||||
|
|
||||||
C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME now, META_FUNCTIONS *pFunctionTable, meta_globals_t *pMGlobals, gamedll_funcs_t *pGamedllFuncs)
|
C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME now, META_FUNCTIONS *pFunctionTable, meta_globals_t *pMGlobals, gamedll_funcs_t *pGamedllFuncs)
|
||||||
{
|
{
|
||||||
|
if ( gpGamedllFuncs ){
|
||||||
|
LOG_ERROR(PLID,"gpGamedllFuncs already set");
|
||||||
|
return(FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
if(now > Plugin_info.loadable) {
|
if(now > Plugin_info.loadable) {
|
||||||
LOG_ERROR(PLID, "Can't load module right now");
|
LOG_ERROR(PLID, "Can't load module right now");
|
||||||
return(FALSE);
|
return(FALSE);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user