mirror of
https://github.com/encounter/nod-rs.git
synced 2025-12-16 16:37:01 +00:00
Fix checks & build
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user