Mod: minor change

This commit is contained in:
Van
2025-09-25 14:42:16 +00:00
parent 74b7663e83
commit c0eb6b5920

View File

@@ -10,7 +10,7 @@ Mod = {}
---Returns the mod name without prefixes ---Returns the mod name without prefixes
---@param name string ---@param name string
---@return string ---@return string
function Mod.getShortModName(name) local function getShortModName(name)
local shortName = string.gsub(name, '%w*__', '') local shortName = string.gsub(name, '%w*__', '')
return shortName return shortName
@@ -20,7 +20,7 @@ end
---@return {name: string, shortName: string, path: string, require: fun(FileName : string): table} ---@return {name: string, shortName: string, path: string, require: fun(FileName : string): table}
function Mod.getInfo() function Mod.getInfo()
local name = core.get_current_modname() local name = core.get_current_modname()
local shortName = Mod.getShortModName(name) local shortName = getShortModName(name)
local path = core.get_modpath(name) local path = core.get_modpath(name)
local require = Require.getModRequire(name, path) local require = Require.getModRequire(name, path)