From a3ca65a4581769a641b1e6a481713b4358874c8c Mon Sep 17 00:00:00 2001 From: MCorange Date: Mon, 26 Aug 2024 00:04:22 +0300 Subject: [PATCH] :3 --- keypadOS.lua | 8 +++++--- x.py | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/keypadOS.lua b/keypadOS.lua index a438e84..17c19c3 100644 --- a/keypadOS.lua +++ b/keypadOS.lua @@ -3,11 +3,13 @@ local __DEFAULT_IMPORT = require local require = function(path) if __BUNDLER_FILES[path] then return __BUNDLER_FILES[path]() - elseif __BUNDLER_FILES[path .. ".lua"] - return __DEFAULT_IMPORT(path .. ".lua") + elseif __BUNDLER_FILES[path .. ".lua"] then + return __BUNDLER_FILES[path .. ".lua"]() + else + return __DEFAULT_IMPORT(path) end end -local __UPDATE_HASH = "7384b0fb8aa0c196aa226eb2e3d2d7a18d323eaa" +local __UPDATE_HASH = "06ce6de3f0bd472e135bd6937c93d8d73dc8d20b" rawset(__BUNDLER_FILES, "updater.lua", function () local utils = require("utils.lua") local config = require("config.lua") diff --git a/x.py b/x.py index 0690615..75c894c 100755 --- a/x.py +++ b/x.py @@ -46,8 +46,10 @@ local __DEFAULT_IMPORT = require local require = function(path) if __BUNDLER_FILES[path] then return __BUNDLER_FILES[path]() - elseif __BUNDLER_FILES[path .. ".lua"] - return __DEFAULT_IMPORT(path .. ".lua") + elseif __BUNDLER_FILES[path .. ".lua"] then + return __BUNDLER_FILES[path .. ".lua"]() + else + return __DEFAULT_IMPORT(path) end end local __UPDATE_HASH = __BUNDLER_REPLACE_HASH__