mirror of
https://github.com/Adorable-Catgirl/Zorya-NEO.git
synced 2024-11-15 06:48:07 +11:00
13 lines
301 B
Lua
13 lines
301 B
Lua
|
local kpkg = {}
|
||
|
kpkg.libs = {}
|
||
|
local krlib = kpkg.libs
|
||
|
kpkg.search = {}
|
||
|
local krfind = kpkg.search
|
||
|
function krequire(pkg)
|
||
|
if (krlib[pkg]) then return krlib[pkg] end
|
||
|
for i=1, #krfind do
|
||
|
local r = krfind[i](pkg)
|
||
|
if (r) then krlib[pkg] = r() return krlib[pkg] end
|
||
|
end
|
||
|
end
|
||
|
local krequire = krequire
|