TR [Language] File Format

The Text Resource Language container stores localized resources. Which localized container to load is determined by the language setting in BLADE.INI.

struct text_resource_container_t      // TR[L] file container
{
     INT32 number_of_entries;     // Number of entries [Read from file]
     INT32 *ids;                  // Array of string ids [Read from file]
     INT32 *offsets;              // Array of offsets into string segment. Array length must match ids array length [Read from file]
     CHAR  *string_segment;       // block of null-terminated strings [Read from file]
};