sims-far

A Rust library to extract data from The Sims 1 UIGraphics.far files.

Installation

cargo add sims-far

Usage

Extract all contents of the far file:

```rust use sims_far::Far; use std::fs::File;

let far = Far::new(r"C:\Program Files (x86)\Maxis\The Sims\UIGraphics\UIGraphics.far");

for manifestentry in far.manifest.manifestentries { let mut f = File::create(manifestentry.filename).unwrap(); f.writeall(&manifestentry.get_bytes()).unwrap(); } ```