modIsUnpacked
Definition
-- @/lua/ge/extensions/core/modmanager.lua:1307
local function modIsUnpacked(modname)
local modname = getModNameFromPath(modname)
--log('I', 'modIsUnpacked', modname)
if mods[modname] == nil then return false end
--log('I', 'modIsUnpacked', mods[modname].unpackedPath)
return mods[modname].unpackedPath ~= nil
end
Callers
@/lua/ge/extensions/core/repository.lua
modList[k].pending = idInUpdateQueue(v.tagid)
modList[k].unpacked = core_modmanager.modIsUnpacked(v.filename)
modList[k].downState = getDownloadState(v.tagid)
request.responseData.data.pending = idInUpdateQueue(mod_id)
request.responseData.data.unpacked = core_modmanager.modIsUnpacked(request.responseData.data.filename)
request.responseData.data.downState = getDownloadState(mod_id)
modList[k].pending = idInUpdateQueue(v.id)
modList[k].unpacked = core_modmanager.modIsUnpacked(v.filename)
modList[k].downState = getDownloadState(v.tagid)
@/lua/ge/extensions/core/modmanager.lua
-- fix old bug in db
if M.modIsUnpacked(modname) and filename:find('/unpacked/') and mods[modname].orgZipFilename:startswith('/mods') and not mods[modname].orgZipFilename:startswith('/mods/') then
mods[modname].orgZipFilename = mods[modname].orgZipFilename:gsub('/mods', '/mods/')