1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! `.loca` localization file format
//!
//!
//!
//! Binary format for Baldur's Gate 3 localization strings.
//! Use `read_loca` / `write_loca` to read and write files,
//! or convert to XML for editing.
pub use ;
pub use write_loca;
/// "LOCA" magic signature (little-endian)
pub const LOCA_SIGNATURE: u32 = 0x41434F4C;
/// Size of each entry in the entry table (64 + 2 + 4 = 70 bytes)
pub const ENTRY_SIZE: usize = 70;
/// Size of the key field in each entry
pub const KEY_SIZE: usize = 64;
/// A single localized text entry
/// A collection of localized text entries