GE Lua Documentation

Press F to search!

isAllowedInputmapPath

Definition


-- @/lua/ge/extensions/tech/license.lua:24

-- returns true if it makes sense to load this inputmap
local function isAllowedInputmapPath(path)
  if isValid() then return true end
  return string.find(path, "_beamng.tech") == nil
end

Callers

@/lua/ge/extensions/core/input/bindings.lua
      for _,path in ipairs(FS:findFiles(dir, prefix:lower().."*."..suffix, recursion, true, false)) do
        if tech_license.isAllowedInputmapPath(path) then
          table.insert(result, path)