From 009d9d6071e7968df29d22d63ae22f2faf21c221 Mon Sep 17 00:00:00 2001 From: MCorange Date: Sun, 25 Aug 2024 22:08:59 +0300 Subject: [PATCH] :3 --- rtmc.lua | 1 + src/main.lua | 1 - src/updater.lua | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rtmc.lua b/rtmc.lua index 766737a..e4529a6 100644 --- a/rtmc.lua +++ b/rtmc.lua @@ -350,6 +350,7 @@ rawset(__BUNDLER_FILES, "updater.lua", function () branch = branch, url = url }; + self:update(path, url); end function updater:checkAndUpdateAll() for path, entry in pairs(self.updated_files) do diff --git a/src/main.lua b/src/main.lua index 2be74a1..ef07fb9 100644 --- a/src/main.lua +++ b/src/main.lua @@ -13,7 +13,6 @@ end local function _start() local upd = updater.new(); upd:addEntry(MODULE_PATH, "keypad", MODULE_URL); - parallel.waitForAny(function() updaterLoop(upd) end, require(MODULE_PATH)) end diff --git a/src/updater.lua b/src/updater.lua index 7699602..38a8340 100644 --- a/src/updater.lua +++ b/src/updater.lua @@ -34,6 +34,7 @@ function updater:addEntry(path, branch, url) branch = branch, url = url }; + self:update(path, url); end function updater:checkAndUpdateAll()