Skip to content

Commit 63d493f

Browse files
authored
Merge pull request #22 from pharispharispharis/omwgame-support
Add omwgame support
2 parents 1af3e35 + f3454df commit 63d493f

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ where
260260
|| ext == "esp"
261261
|| (use_omw_plugins && ext == "omwaddon")
262262
|| (use_omw_plugins && ext == "omwscripts")
263+
|| (use_omw_plugins && ext == "omwgame")
263264
{
264265
results.push(file_path);
265266
}

src/parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ pub fn new_openmw_parser() -> Parser {
3333
vec![
3434
".esp".into(),
3535
".esm".into(),
36+
".omwgame".into(),
3637
".omwaddon".into(),
3738
".omwscripts".into(),
3839
],

src/sorter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ impl Sorter {
192192
// put all items in mods_copy ending with .esm at the start
193193
let mut esms = vec![];
194194
for (i, m) in mods_copy.iter().enumerate() {
195-
if m.ends_with(".esm") {
195+
if m.ends_with(".esm") || m.ends_with(".omwgame") {
196196
esms.push(i);
197197
}
198198
}

0 commit comments

Comments
 (0)