You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
491 B

extern crate nrgrip;
use nrgrip::metadata;
use std::fs::File;
use std::io::{Seek, SeekFrom};
use std::path::PathBuf;
fn nrg_format() {
let mut img = PathBuf::new();
let mut fd = File::open(img)
let size =
let ver = metadata::read_nrg_version(&mut fd, size)
assert_eq!(ver, 2);