Skip to content

Commit

Permalink
Crash fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Raytwo committed Sep 8, 2020
1 parent 6b4b13b commit bcc0c2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/patching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,14 @@ pub fn filesize_replacement() {
);
}
} else {
//if (subfile.decompressed_size < metadata.len() as u32) {
if (subfile.decompressed_size < metadata.len() as u32) {
subfile.decompressed_size = metadata.len() as u32;
println!(
"[ARC::Patching] New decompressed size for {}: {:#x}",
path.as_path().display(),
subfile.decompressed_size
);
//}
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl LoadedArc {
// Regional
if (file_info.flags & 0x00008000) == 0x8000 {
sub_index = self.lookup_fileinfosubindex_by_index(
file_info.sub_index_index + 1 + ResServiceState::get_instance().regular_region_idx,
file_info.sub_index_index + 1 + ResServiceState::get_instance().regular_region_idx
);
}

Expand Down

0 comments on commit bcc0c2d

Please sign in to comment.