mirror of
https://github.com/bakpakin/tiny-ecs.git
synced 2024-11-17 04:44:23 +00:00
commit
65de2a9c6f
5
init.lua
5
init.lua
@ -1,5 +1,6 @@
|
|||||||
-- Helper Lua file for easy require if tiny-ecs is used as a git submodule or
|
-- Helper Lua file for easy require if tiny-ecs is used as a git submodule or
|
||||||
-- folder. Not needed in many cases, including luarocks distribution.
|
-- folder. Not needed in many cases, including luarocks distribution.
|
||||||
|
|
||||||
local directory = (...):match("(.-)[^%.]+$")
|
local args = {...}
|
||||||
return require(directory .. 'tiny')
|
local directory = args[1]
|
||||||
|
return require(directory .. '.tiny')
|
||||||
|
Loading…
Reference in New Issue
Block a user