API:PregameGetEULAFileName
From RoR Wiki
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" )
