Changed dir structure for modules and plugins
This commit is contained in:
parent
3e5572ed9a
commit
297aac76eb
|
@ -244,7 +244,7 @@ int Spawn( edict_t *pent ) {
|
||||||
get_localinfo("amxx_basedir" , "addons/amxx" );
|
get_localinfo("amxx_basedir" , "addons/amxx" );
|
||||||
|
|
||||||
// ###### Load modules
|
// ###### Load modules
|
||||||
int loaded = loadModules( get_localinfo("amxx_modules" , "addons/amxx/config/modules.ini" ) );
|
int loaded = loadModules( get_localinfo("amxx_modules" , "addons/amxx/modules.ini" ) );
|
||||||
attachModules();
|
attachModules();
|
||||||
// Set some info about amx version and modules
|
// Set some info about amx version and modules
|
||||||
if ( loaded ){
|
if ( loaded ){
|
||||||
|
@ -276,7 +276,7 @@ int Spawn( edict_t *pent ) {
|
||||||
|
|
||||||
// ###### Load AMX scripts
|
// ###### Load AMX scripts
|
||||||
g_plugins.loadPluginsFromFile(
|
g_plugins.loadPluginsFromFile(
|
||||||
get_localinfo("amxx_plugins" , "addons/amxx/config/plugins.ini" ) );
|
get_localinfo("amxx_plugins" , "addons/amxx/plugins.ini" ) );
|
||||||
|
|
||||||
// ###### Call precache forward function
|
// ###### Call precache forward function
|
||||||
g_dontprecache = false;
|
g_dontprecache = false;
|
||||||
|
@ -975,7 +975,7 @@ C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME now, META_FUNCTIONS *pFunctionTable, m
|
||||||
|
|
||||||
// ###### Now attach metamod modules
|
// ###### Now attach metamod modules
|
||||||
attachMetaModModules( get_localinfo("amxx_modules" ,
|
attachMetaModModules( get_localinfo("amxx_modules" ,
|
||||||
"addons/amxx/config/modules.ini" ) );
|
"addons/amxx/modules.ini" ) );
|
||||||
|
|
||||||
return(TRUE);
|
return(TRUE);
|
||||||
}
|
}
|
||||||
|
@ -1005,7 +1005,7 @@ C_DLLEXPORT int Meta_Detach(PLUG_LOADTIME now, PL_UNLOAD_REASON reason) {
|
||||||
|
|
||||||
// ###### Now dettach metamod modules
|
// ###### Now dettach metamod modules
|
||||||
dettachMetaModModules( get_localinfo("amxx_modules" ,
|
dettachMetaModModules( get_localinfo("amxx_modules" ,
|
||||||
"addons/amxx/config/modules.ini" ) );
|
"addons/amxx/modules.ini" ) );
|
||||||
|
|
||||||
return(TRUE);
|
return(TRUE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user