Undefined argument in util.loadfilemods
Posted: Sun Feb 05, 2012 1:08 am
I am poking around at the addon code and believe that I have a found an undefined `bname` variable inside of `util.loadfilemods`:
The `base` variable is the function returned by `loadfile`, so I don't think that it accepts any arguments anyway. If I am not understanding can you explain what is going on? Cheers!
EDIT: I got there eventually.
DG is doing some fancy magic with the `te4_loader` function and `package.loaders`, so nothing to see here. Unless you want to understand how the addons are actually implemented that is.
Code: Select all
1002 function util.loadfilemods(file, env)
...
1017 local ok, err = pcall(base, bname)
EDIT: I got there eventually.
