mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-23 00:53:56 +00:00
c1315ed90c
It's extremely useful in determining if a nif file is bad without having to load up openmw or opencs. Also updated the nif testing script to run at a low priority.
15 lines
353 B
Bash
Executable file
15 lines
353 B
Bash
Executable file
#!/bin/bash
|
|
|
|
#Script to test all nif files (both loose, and in BSA archives) in data files directory
|
|
|
|
DATAFILESDIR="$1"
|
|
|
|
find "$DATAFILESDIR" -iname *bsa > nifs.txt
|
|
find "$DATAFILESDIR" -iname *nif >> nifs.txt
|
|
|
|
sed -e 's/.*/\"&\"/' nifs.txt > quoted_nifs.txt
|
|
|
|
nice -n 10 xargs --arg-file=quoted_nifs.txt ../../../niftest
|
|
|
|
rm nifs.txt
|
|
rm quoted_nifs.txt
|