:3
This commit is contained in:
parent
bb8aceb832
commit
b1e225d2c4
6
rtmc.lua
6
rtmc.lua
|
@ -11,7 +11,7 @@ local require = function(path)
|
|||
end
|
||||
rawset(__BUNDLER_FILES, "main.lua", function ()
|
||||
local updater = require("updater");
|
||||
local MODULE_PATH = "keypadOS.lua";
|
||||
local MODULE_NAME = "keypadOS";
|
||||
local MODULE_URL = "https://git.mcorangehq.xyz/xomf/keypadOS/raw/branch/keypad/keypadOS.lua";
|
||||
local function updaterLoop(upd)
|
||||
while true do
|
||||
|
@ -20,8 +20,8 @@ rawset(__BUNDLER_FILES, "main.lua", function ()
|
|||
end
|
||||
local function _start()
|
||||
local upd = updater.new();
|
||||
upd:addEntry(MODULE_PATH, "keypad", MODULE_URL);
|
||||
parallel.waitForAny(function() updaterLoop(upd) end, require(MODULE_PATH))
|
||||
upd:addEntry(MODULE_NAME .. ".lua", "keypad", MODULE_URL);
|
||||
parallel.waitForAny(function() updaterLoop(upd) end, require(MODULE_NAME))
|
||||
end
|
||||
local mod = {};
|
||||
mod.main = _start;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
local updater = require("updater");
|
||||
|
||||
local MODULE_PATH = "keypadOS.lua";
|
||||
local MODULE_NAME = "keypadOS";
|
||||
local MODULE_URL = "https://git.mcorangehq.xyz/xomf/keypadOS/raw/branch/keypad/keypadOS.lua";
|
||||
|
||||
--- @param upd Updater
|
||||
|
@ -12,8 +12,8 @@ end
|
|||
|
||||
local function _start()
|
||||
local upd = updater.new();
|
||||
upd:addEntry(MODULE_PATH, "keypad", MODULE_URL);
|
||||
parallel.waitForAny(function() updaterLoop(upd) end, require(MODULE_PATH))
|
||||
upd:addEntry(MODULE_NAME .. ".lua", "keypad", MODULE_URL);
|
||||
parallel.waitForAny(function() updaterLoop(upd) end, require(MODULE_NAME))
|
||||
end
|
||||
|
||||
local mod = {};
|
||||
|
|
Loading…
Reference in New Issue
Block a user