enhanced mydofile
This commit is contained in:
parent
f93d0df461
commit
6193618d1b
2
init.lua
2
init.lua
@ -39,6 +39,8 @@ function mydofile(mod)
|
||||
dofile( mod .. ".lua")
|
||||
elseif (file.open(mod .. ".lc")) then
|
||||
dofile(mod .. ".lc")
|
||||
elseif (file.open(mod)) then
|
||||
dofile(mod)
|
||||
else
|
||||
print("Error: " .. mod)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user