7 lines
325 B
Bash
7 lines
325 B
Bash
#!/bin/bash
|
|
set -e
|
|
if [ -z ${dir+x} ]; then echo "\$dir not set, skipping."; exit 22; else
|
|
if grep -q "set OPENSSL_ia32cap=:~0x20000000" $dir/game/bin/launch.bat; then echo "Patch already present in file, skipping."; else
|
|
sed -i '/@echo off/Ia set OPENSSL_ia32cap=:~0x20000000' $dir/game/bin/launch.bat
|
|
fi
|
|
fi
|