registerBaseBank
Definition
-- @/lua/ge/extensions/core/audio.lua:193
local function registerBaseBank(path)
local inLevelOrLoadingOrLoading = getMissionFilename() ~= "" or LoadingManager:isLoadingInProgress()
if inLevelOrLoading then
return
end
if string.sub(path, 1, 1) ~= '/' then
path = "/"..path
end
path = string.lower(path)
if inited then
if not loadedBankCache[path] then
loadedBankCache[path] = true
if SFXFMODProject then SFXFMODProject.loadBaseBank(path)
else log("E", "audio", "SFXFMODProject is nil") end
end
else
table.insert(forLoad, path)
end
end
Callers