mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 18:00:17 +02:00
36 lines
771 B
Bash
Executable File
36 lines
771 B
Bash
Executable File
#!/bin/bash
|
|
FEX={$1:FEXLoader}
|
|
for fileid in ~/.fex-emu/aotir/*.path; do
|
|
filename=`cat "$fileid"`
|
|
args=""
|
|
if [ "${fileid: -6 : 1}" == "P" ]; then
|
|
args="$args --no-abinopf"
|
|
else
|
|
args="$args --abinopf"
|
|
fi
|
|
|
|
if [ "${fileid: -7 : 1}" == "L" ]; then
|
|
args="$args --abilocalflags"
|
|
else
|
|
args="$args --no-abilocalflags"
|
|
fi
|
|
|
|
if [ "${fileid: -8 : 1}" == "T" ]; then
|
|
args="$args --tsoenabled"
|
|
else
|
|
args="$args --no-tsoenabled"
|
|
fi
|
|
|
|
if [ "${fileid: -9 : 1}" == "S" ]; then
|
|
args="$args --smc=full"
|
|
else
|
|
args="$args --smc=mman"
|
|
fi
|
|
|
|
if [ -f "${fileid%.path}.aotir" ]; then
|
|
echo "`basename $fileid` has already been generated"
|
|
else
|
|
echo "Processing `basename $fileid` ($filename) with $args"
|
|
Bin/FEXLoader --aotirgenerate $args "$filename"
|
|
fi
|
|
done |