Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:PregameGetEULAFileName

From RoR Wiki
Revision as of 19:47, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · Pregame functions
Version: WAR 1.4.8

Returns the file name of the End User License Agreement string file.

fileName = PregameGetEULAFileName()

Arguments

None.

Returns

fileName
string – "EULA.txt". The code has a second name, "EULA_MAC.txt", that it returns instead when one of the client's platform checks is set.

Details

  • The name is a fixed string in the client. The stock UI loads it as a string table from data/strings/<LANG>/pregame.
  • PregameHasEULAChanged checks the same file.

Errors

None.

Example

From interfacecore/source/eularocwindow.lua:

stringTableFileName = PregameGetEULAFileName()
-- ...
if ( stringTableFileName )
then
    LoadStringTable("EULAROC", "data/strings/<LANG>/pregame", stringTableFileName, "cache/<LANG>", "StringTables.EULAROC" )

See also