pmd_wan 6.0.0

A library that can read wan file, a sprite format used in pokemon mystery dungeon games
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::{
    fs::File,
    io::{Cursor, Read},
};

use pmd_wan::WanImage;

pub fn main() {
    let mut wan_file = File::open("bulbasaurEU.wan").unwrap();
    let mut wan_data = Vec::new();
    wan_file.read_to_end(&mut wan_data).unwrap();
    for _ in 0..10000 {
        WanImage::decode_wan(Cursor::new(&wan_data)).unwrap();
    }
}