Skip to content

Commit

Permalink
Added exclusion for non SK_ files
Browse files Browse the repository at this point in the history
  • Loading branch information
natimerry committed Feb 11, 2025
1 parent b284ab1 commit 9a1a4de
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ members = ["repak", "repak_cli"]
repository = "https://github.com/natimerry/repak-rivals"
authors = ["spuds", "trumank","natimerry"]
license = "MIT OR Apache-2.0"
version = "0.5.3"
version = "0.5.4"
edition = "2021"
keywords = ["marvel-rivals","unreal-engine", "pak", "unrealpak"]

Expand Down
4 changes: 3 additions & 1 deletion repak_cli/src/uasset_fix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ pub fn read_uexp(
f.stream_position()?
);

if max_bytes == file_size as i32{
if max_bytes == file_size as i32 {
break;
}
max_bytes = max(max_bytes + 0x50000, (file_size - starting_pos) as i32);
Expand Down Expand Up @@ -263,6 +263,8 @@ pub fn read_uexp(
|| file.contains("Anim")
|| file.contains("Rig")
|| file.contains("BP")
|| !file.contains("SK_")
// if we fail to patch and it isnt a SK_ mod, we can probably skip it without issues
{
println!("but we can try skipping this!");
return Err(std::io::Error::new(std::io::ErrorKind::Other, "Skip this"));
Expand Down

0 comments on commit 9a1a4de

Please sign in to comment.