Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function doModCallBack(callback, mode)
- local modList = mod_getList()
- if callback == "load" then
- modList = fs.list("/boot/mod")
- for k, v in pairs(modList) do
- v = v:gsub(".lua$","")
- end
- end
- for k, v in ipairs(modlist) do
- local ok, err = mod_event(module, callback, "KernelBoot")
- if not ok then
- error("[Kernel Panic] Couldn't "..mode.." "..module..". The module crashed with the error: "..err)
- else
- print("Successfully "..mode.." "..module..".")
- end
- end
- print("Done. "..#modlist.." Modules "..mode..".")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement