genie-drs
.drs is the resource archive file format for the Genie Engine, used by Age of Empires 1/2 and Star Wars: Galactic Battlegrounds. .drs files contain tables, each of which contain resources of a single type. Resources are identified by a numeric identifier.
This crate only supports reading files right now.
Install
Add to Cargo.toml:
[]
= { = "https://github.com/goto-bus-stop/genie-drs-rs.git", = "default" }
Example
extern crate genie_drs;
use File;
use DRSReader;
let mut file = open.unwrap;
let drs = new.unwrap;
for table in drs.tables
Wishlist
- An API that doesn't require passing in the file handle manually
- A writer
- A file mapping counterpart for the
read_resource
API, using memmap probably.