maclarian 0.1.3

Larian file format library for Baldur's Gate 3 - PAK, LSF, LSX, GR2, DDS, and more
Documentation
//! LSPK PAK file format reader/writer
//!
//! This is a replacement for the larian-formats crate's PAK handling,
//! with better error handling, progress callbacks, and error recovery.
//!
//!

mod reader;
mod types;
mod writer;

// Reader/Writer exports
pub use reader::LspkReader;
pub(crate) use writer::LspkWriter;

// Public types that users need
pub use types::{CompressionMethod, FileTableEntry, PakContents, PakFile, PakPhase, PakProgress};

// Internal constants
pub(crate) const MAGIC: [u8; 4] = [b'L', b'S', b'P', b'K'];
pub(crate) const MIN_VERSION: u32 = 15;
pub(crate) const MAX_VERSION: u32 = 18;
pub(crate) const PATH_LENGTH: usize = 256;
pub(crate) const TABLE_ENTRY_SIZE: usize = 272;

// Internal header types (used by reader)
pub(crate) use types::{LspkFooter, LspkHeader};