Skip to content

Commit e51e996

Browse files
committed
Fix repak ignoring meshs directory in some new skins
1 parent 783420e commit e51e996

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ members = ["repak", "repak-gui", "repak_cli","simd_str_cmp"]
66
repository = "https://github.com/natimerry/repak-rivals"
77
authors = ["spuds", "trumank","natimerry"]
88
license = "MIT OR Apache-2.0"
9-
version = "2.5.8"
9+
version = "2.6.0"
1010
edition = "2021"
1111
keywords = ["marvel-rivals","unreal-engine", "pak", "unrealpak"]
1212

repak-gui/src/install_mod/install_mod_logic/patch_meshes.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ pub fn mesh_patch(paths: &mut Vec<PathBuf>, mod_dir: &PathBuf) -> Result<(), rep
2222
.iter()
2323
.filter(|p| {
2424
p.extension().and_then(|ext| ext.to_str()) == Some("uasset")
25-
&& (p.to_str().unwrap().to_lowercase().contains("meshes"))
25+
&& ((p.to_str().unwrap().to_lowercase().starts_with("mesh"))
26+
|| (p.to_str().unwrap().to_lowercase().contains("meshes"))) // idk i didnt test this so im keeping this redundant check
2627
})
2728
.cloned()
2829
.collect::<Vec<PathBuf>>();
@@ -150,4 +151,4 @@ pub fn mesh_patch(paths: &mut Vec<PathBuf>, mod_dir: &PathBuf) -> Result<(), rep
150151

151152
info!("Done patching files!!");
152153
Ok(())
153-
}
154+
}

0 commit comments

Comments
 (0)