diff --git a/src/main.rs b/src/main.rs index 633943f..607c6b9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,7 +8,7 @@ use std::{env, fs}; // TODO: Check if this may change. const OFFSET_VERSION_NUMBER: u64 = 52; // Retrieved by philipdestroyer by inspecting the game's sound banks in memory at runtime. -const BANK_VERSION: [u8; 4] = [0x92, 0x11, 0xbc, 0x28]; +const BANK_VERSION: [u8; 4] = [0x28, 0xbc, 0x11, 0x92]; fn main() { let path = env::args().nth(1).expect("Path to sound bank required"); @@ -25,8 +25,7 @@ fn main() { .expect("failed to copy to tempfile"); // Write the hard coded version number - tmp.write(&BANK_VERSION) - .expect("failed to write version number"); + tmp.write(&BANK_VERSION).expect("failed to write version number"); // Copy the rest of the file f.seek(SeekFrom::Start(OFFSET_VERSION_NUMBER + 4))