View Single Post
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 01-29-2018 , 09:17   Re: [INCLUDE] AutoExecConfig: Read and append to auto configs
Reply With Quote #45

Quote:
Originally Posted by Impact123 View Post
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.
That change broke the case where you were creating that directory on your own before. Since you don't allow nested directories anymore, this fails and creates the files in the game's root folder instead of any subfolder at all. More details here.

I'd like to either revert that commit or try to create the whole subdirectory path if it doesn't exist.
__________________
Peace-Maker is offline