Page 1 of 1

init.lua Efficiency Question

Posted: Tue Nov 06, 2012 12:39 am
by Neikun
Would it be possible to have the import list simplified by something along the lines of
import all ".lua"
This would make mods a lot easier to plug and play.
I'm basically wondering if it's possible, or if it would be easy to implement in an update.

Re: init.lua Efficiency Question

Posted: Tue Nov 06, 2012 4:20 am
by HaunterV
oo can you just "import script folder?"

Re: init.lua Efficiency Question

Posted: Tue Nov 06, 2012 9:05 am
by petri
Unfortunately the dat filesystem does not support enumerating contents of directories so it can't be done (without changing the format of the dat file).

Re: init.lua Efficiency Question

Posted: Tue Nov 06, 2012 12:44 pm
by Neikun
Okie dokes. Thanks, Petri.