Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions flint/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Interface-related functions, such as routines for translating RDL.
"""
import xml.etree.ElementTree as xml
from . import paths, cached


def rdl_to_html(rdl: str) -> str:
Expand All @@ -34,6 +35,11 @@ def html_to_rdl(html: str) -> str:
return result


@cached
def get_constants() -> dict:
path = paths.inis["constants"]
return dict(ini.parse(path))

# A lookup table mapping RDL (Render Display List) tags to HTML(4). Freelancer, to my eternal horror, uses these for
# formatting for strings inside these resource DLLs. Based on work by adoxa and cshake.
# More information can be found in this thread: <https://the-starport.net/modules/newbb/viewtopic.php?&topic_id=562>
Expand Down