luafar_init.lua

LuaFAR 3

luafar_init.lua


If the file %FARPROFILE%\luafar_init.lua exists it is executed before the first run of the plugin’s default script.
It is also executed when the Lua state is recreated.
It is not executed when the default script is reloaded due to far.ReloadDefaultScript == true.

Note

This feature is disabled by default. To enable it, add -DRUN_LUAFAR_INIT to compilation flags.

See also:
LF_LuafarInit
LF_RunDefaultScript
LF_Open