Related to #266. Looks like I've changed the prefix afterward at some point for some reason, but engine is retarded and with `plugin.something.cfg` it will understand extension is `something` instead  of `cfg` ; and will fail to execute as it's an invalid extension (only `cfg` and `rc` are allowed).
This commit is contained in:
Vincent Herbet 2015-08-27 17:48:57 +02:00 committed by Arkshine
parent 190304f601
commit 57a5004f4e
2 changed files with 4 additions and 3 deletions

View File

@ -4506,7 +4506,7 @@ static cell AMX_NATIVE_CALL AutoExecConfig(AMX *amx, cell *params)
} }
static char newName[PLATFORM_MAX_PATH]; static char newName[PLATFORM_MAX_PATH];
UTIL_Format(newName, sizeof(newName), "plugin.%s", pluginName); UTIL_Format(newName, sizeof(newName), "plugin-%s", pluginName);
name = newName; name = newName;
} }

View File

@ -3220,6 +3220,7 @@ forward OnAutoConfigsBuffered();
* *
* @note OnConfigsExecuted() will not be called until the config file has executed, * @note OnConfigsExecuted() will not be called until the config file has executed,
* but it will be called if the execution fails. * but it will be called if the execution fails.
* @note The name parameter should not contain dots, otherwise file will not be executed.
* *
* @param autoCreate If true, and the config file does not exist, such a config * @param autoCreate If true, and the config file does not exist, such a config
* file will be automatically created and populated with * file will be automatically created and populated with