add menu for cubescript hooks

- add new hook "autoexec", executed right after autoexec.cfg
- properly report errors during hook execution
- new script to edit the contents of an alias in the console

DOCREF autoexec
This commit is contained in:
ac-stef
2017-05-16 13:11:32 +02:00
parent e256971725
commit 6f03d1819b
4 changed files with 27 additions and 0 deletions
+1
View File
@@ -1225,6 +1225,7 @@ int main(int argc, char **argv)
exechook(HOOK_SP_MP, "afterinit", "");
autostartscripts(""); // all remaining scripts
execfile("config/autoexec.cfg");
exechook(HOOK_SP_MP, "autoexec", "");
execute("addallfavcatmenus"); // exec here, to add all categories (including those defined in autoexec.cfg)
initing = NOT_INITING;
uniformtexres = !hirestextures;