Crates.io | sims-far |
lib.rs | sims-far |
version | 1.3.0 |
source | src |
created_at | 2023-05-07 18:59:59.894873 |
updated_at | 2023-05-20 14:07:41.547787 |
description | A library to parse The Sims 1 .far files. |
homepage | |
repository | https://github.com/FaithBeam/sims-far |
max_upload_size | |
id | 859336 |
size | 19,141 |
A Rust library to extract data from The Sims 1 UIGraphics.far files.
cargo add sims-far
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();
}