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