This commit is contained in:
Gvidas Juknevičius 2024-08-26 00:04:22 +03:00
parent d07a35f360
commit a3ca65a458
Signed by: MCorange
GPG Key ID: 12B1346D720B7FBB
2 changed files with 9 additions and 5 deletions

View File

@ -3,11 +3,13 @@ local __DEFAULT_IMPORT = require
local require = function(path) local require = function(path)
if __BUNDLER_FILES[path] then if __BUNDLER_FILES[path] then
return __BUNDLER_FILES[path]() return __BUNDLER_FILES[path]()
elseif __BUNDLER_FILES[path .. ".lua"] elseif __BUNDLER_FILES[path .. ".lua"] then
return __DEFAULT_IMPORT(path .. ".lua") return __BUNDLER_FILES[path .. ".lua"]()
else
return __DEFAULT_IMPORT(path)
end end
end end
local __UPDATE_HASH = "7384b0fb8aa0c196aa226eb2e3d2d7a18d323eaa" local __UPDATE_HASH = "06ce6de3f0bd472e135bd6937c93d8d73dc8d20b"
rawset(__BUNDLER_FILES, "updater.lua", function () rawset(__BUNDLER_FILES, "updater.lua", function ()
local utils = require("utils.lua") local utils = require("utils.lua")
local config = require("config.lua") local config = require("config.lua")

6
x.py
View File

@ -46,8 +46,10 @@ local __DEFAULT_IMPORT = require
local require = function(path) local require = function(path)
if __BUNDLER_FILES[path] then if __BUNDLER_FILES[path] then
return __BUNDLER_FILES[path]() return __BUNDLER_FILES[path]()
elseif __BUNDLER_FILES[path .. ".lua"] elseif __BUNDLER_FILES[path .. ".lua"] then
return __DEFAULT_IMPORT(path .. ".lua") return __BUNDLER_FILES[path .. ".lua"]()
else
return __DEFAULT_IMPORT(path)
end end
end end
local __UPDATE_HASH = __BUNDLER_REPLACE_HASH__ local __UPDATE_HASH = __BUNDLER_REPLACE_HASH__