Kaynağa Gözat

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

master
XeonSquared 9 ay önce
ebeveyn
işleme
efdb01328f
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      lib/rc.lua

+ 1
- 1
lib/rc.lua Dosyayı Görüntüle

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


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


Yükleniyor…
İptal
Kaydet