Skip to content

Commit

Permalink
Merge pull request #22 from pharispharispharis/omwgame-support
Browse files Browse the repository at this point in the history
Add omwgame support
  • Loading branch information
rfuzzo authored Mar 14, 2024
2 parents 1af3e35 + f3454df commit 63d493f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ where
|| ext == "esp"
|| (use_omw_plugins && ext == "omwaddon")
|| (use_omw_plugins && ext == "omwscripts")
|| (use_omw_plugins && ext == "omwgame")
{
results.push(file_path);
}
Expand Down
1 change: 1 addition & 0 deletions src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pub fn new_openmw_parser() -> Parser {
vec![
".esp".into(),
".esm".into(),
".omwgame".into(),
".omwaddon".into(),
".omwscripts".into(),
],
Expand Down
2 changes: 1 addition & 1 deletion src/sorter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl Sorter {
// put all items in mods_copy ending with .esm at the start
let mut esms = vec![];
for (i, m) in mods_copy.iter().enumerate() {
if m.ends_with(".esm") {
if m.ends_with(".esm") || m.ends_with(".omwgame") {
esms.push(i);
}
}
Expand Down

0 comments on commit 63d493f

Please sign in to comment.