GE Lua Documentation

Press F to search!

updateFirstFrame

Definition


-- @/lua/ge/main.lua:565

function updateFirstFrame()
  -- completeIntegrityChunk("base") -- unused for now
  extensions.hook('onFirstUpdate')
  settings.finalizeInit()

  editorEnabled(Engine.getEditorEnabled()) -- make sure the editing tools are in the correct state
  handleCommandLineFirstFrame()

  -- we cannot wait for the UI to be ready if it doesn't exist
  if tableFindKey(cmdArgs, '-noui') or headless_mode then
    -- -headless is working differenly than expected and should not be used
    -- it only prevents opening a main window
    uiReady()
  end
end

Callers