View Single Post
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 11-02-2017 , 21:57   Re: [INCLUDE] AutoExecConfig: Read and append to auto configs
Reply With Quote #42

A few small changes you might be interested in to know about if you use the include file

The include now has versions. If you use
PHP Code:
AutoExecConfig_SetCreateFile 
The config will now add a version number and a link to this forum post at the top of configs like this
Code:
// This file was auto-generated by AutoExecConfig v0.1.2 (https://forums.alliedmods.net/showthread.php?t=204254)
You could always set a custom folder when you used
PHP Code:
AutoExecConfig_SetCreateFile("somefile""somefolder"
but it was never created when it didn't exist.

To retain backwards compatibility i added a new function which allows you to enable the directory creation
PHP Code:
AutoExecConfig_SetCreateDirectory 
The second parameter allows you to tell it which permissions to create the folder with but i would recommend to leave them as is.
__________________

Last edited by Impact123; 11-02-2017 at 22:04.
Impact123 is offline