mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-15 18:39:51 +00:00
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.
16 lines
353 B
Bash
Executable File
16 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
|