Skip to main content

Crate rustpak

Crate rustpak 

Source
Expand description

Rustpak - A library for reading and writing GoldSrc .pak archive files

This library provides functionality to work with .pak files used by Quake, Half-Life, and other GoldSrc engine games. The .pak format is a simple archive format containing a header, a file table, and file data.

§Basic Usage

use rustpak::Pak;

// Load an existing pak file
let pak = Pak::from_file("data.pak".to_string()).unwrap();

// List all files
for file in &pak.files {
    println!("{} - {} bytes", file.name, file.size);
}

// Save modifications
pak.save("data_modified.pak".to_string()).unwrap();

Structs§

Pak
Represents a complete .pak archive file
PakFileEntry
Represents a single file entry within a .pak archive
PakFileError
Error type for .pak file operations
PakHeader
Header structure for .pak archive files