sims-far

Crates.iosims-far
lib.rssims-far
version1.3.0
sourcesrc
created_at2023-05-07 18:59:59.894873
updated_at2023-05-20 14:07:41.547787
descriptionA library to parse The Sims 1 .far files.
homepage
repositoryhttps://github.com/FaithBeam/sims-far
max_upload_size
id859336
size19,141
(FaithBeam)

documentation

README

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:

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

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

for manifest_entry in far.manifest.manifest_entries {
    let mut f = File::create(manifest_entry.file_name).unwrap();
    f.write_all(&manifest_entry.get_bytes()).unwrap();
}
Commit count: 8

cargo fmt