GE Lua Documentation

Press F to search!

loadPlatformSettings

Definition


-- @/lua/ge/extensions/core/settings/settings.lua:443

local function loadPlatformSettings(platformSettingsPath)
  if platformSettingsPath and platformSettingsPath ~= "" then
    log('D', '', 'Loading platform-specific setings from: ' .. platformSettingsPath)
    local platformSettings = jsonReadFile(platformSettingsPath)
    if not platformSettings then
      log('E', '', 'Could not load custom settings JSON from: ' .. platformSettingsPath)
    else
      setState(platformSettings)
    end
  end
end

Callers

@/lua/ge/extensions/core/settings/settings.lua
  --Could be more optimal to call earlier?
  loadPlatformSettings(PlatformSwitches.settingsJsonPath)