From b1e225d2c442354a6c7754349efc63fedee6293f Mon Sep 17 00:00:00 2001 From: MCorange Date: Sun, 25 Aug 2024 22:12:53 +0300 Subject: [PATCH] :3 --- rtmc.lua | 6 +++--- src/main.lua | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rtmc.lua b/rtmc.lua index 81d0cb0..394e438 100644 --- a/rtmc.lua +++ b/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; diff --git a/src/main.lua b/src/main.lua index ef07fb9..f147816 100644 --- a/src/main.lua +++ b/src/main.lua @@ -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 = {};