瀏覽代碼

I don't know why it was looking at package.loaded but it isn't now.

master
XeonSquared 9 月之前
父節點
當前提交
efdb01328f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      lib/rc.lua

+ 1
- 1
lib/rc.lua 查看文件

@@ -24,7 +24,7 @@ local function saveConfig()
end

function rc.load(name,force) -- string boolean -- table -- Attempts to load service *name*, and if *force* is true, replaces the current instance.
if not package.loaded[name] or force then
if not service[name] or force then
for d in rc.paths:gmatch("[^\n]+") do
if fs.exists(d.."/"..name..".lua") then
service[name] = runfile(d.."/"..name..".lua")


Loading…
取消
儲存