Skip to content

Commit

Permalink
chore: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Phill030 committed Apr 21, 2024
1 parent e4966ff commit db4d753
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/library.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,21 @@ impl<'a> Library<'a> {
let offset = reader.read_u32()?;
let size = reader.read_u32()?;
let zip_size = reader.read_u32()?;
let mut zip = reader.read_bool()?;
let mut zipped = reader.read_bool()?;
let crc = reader.read_u32()?;
let file_name = reader.read_big_string()?.to_string().replace('\x00', "");

// Some of them are falsely marked as zipped but aren't actually
if file_name.ends_with(".wav") || file_name.ends_with(".ogg") || file_name.ends_with(".mp3") {
zip = false;
zipped = false;
}

// Add the FileRecord to the HashMap with properties
files.push_back(LibraryRecord {
zip_size,
crc32: crc,
file_name,
zipped: zip,
zipped,
offset,
size,
});
Expand Down

0 comments on commit db4d753

Please sign in to comment.