SRF Format - DustStormPettigrew/LibLR1 GitHub Wiki
SRF — String Resources
Localized text strings. Does NOT use the token-based binary encoding. Has its own format.
Format Structure
| Offset | Type | Description |
|---|---|---|
| 0 | ushort | Number of strings |
| 2 | ushort | Total character count |
| 4 | ushort[numStrings] | Offset table — character offset for each string |
| 4 + numStrings×2 | UCS-2 chars | String data (null-terminated UCS-2/UTF-16LE) |
String positions are calculated as: sizeof(ushort) × (offset[i] + numStrings + 2).
Encoding
Strings are stored as UCS-2 (2 bytes per character, null-terminated with 0x0000). This supports Unicode including Japanese text.
Read/Write Support
Full round-trip. Note: does NOT go through BinaryFileHelper.Decompress() — reads directly from file.