Fix checks & build

This commit is contained in:
2024-02-21 23:25:53 -07:00
parent 07bb8ccc1d
commit f82d8b9f17
6 changed files with 5 additions and 20 deletions

View File

@@ -40,7 +40,7 @@ fn main() {
let out_dir = env::var("OUT_DIR").unwrap();
let dest_path = Path::new(&out_dir).join("parsed-dats.bin");
let mut f = BufWriter::new(File::create(&dest_path).unwrap());
let mut f = BufWriter::new(File::create(dest_path).unwrap());
// Parse dat files
let mut entries = Vec::<(GameEntry, String)>::new();

View File

@@ -452,7 +452,7 @@ fn convert_and_verify(in_file: &Path, out_file: Option<&Path>, md5: bool) -> Res
}
let redump_entry = if let (Some(crc32), Some(sha1)) = (crc32, sha1) {
redump::find_by_hashes(crc32, sha1.into())
redump::find_by_hashes(crc32, sha1)
} else {
None
};

View File

@@ -47,7 +47,7 @@ pub fn find_by_hashes(crc32: u32, sha1: [u8; 20]) -> Option<GameResult> {
#[repr(C, align(4))]
struct Aligned<T: ?Sized>(T);
const DATA: &'static Aligned<[u8]> =
const DATA: &Aligned<[u8]> =
&Aligned(*include_bytes!(concat!(env!("OUT_DIR"), "/parsed-dats.bin")));
// Keep in sync with build.rs