forked from CastroFidel/PortWINE
I made double square brackets everywhere (they work faster), ! -z passed to -n, ! -n to z
This commit is contained in:
@ -12,7 +12,7 @@ fi
|
||||
export PW_VULKAN_USE=1
|
||||
|
||||
add_in_start_portwine () {
|
||||
if [ -d "${WINEPREFIX}/drive_c/users/steamuser/AppData/Roaming/Ubisoft/Anno1404/Config/" ] ; then
|
||||
if [[ -d "${WINEPREFIX}/drive_c/users/steamuser/AppData/Roaming/Ubisoft/Anno1404/Config/" ]] ; then
|
||||
sed -i 's/<DirectXVersion>0<\/DirectXVersion>/<DirectXVersion>9<\/DirectXVersion>/' "${WINEPREFIX}/drive_c/users/steamuser/AppData/Roaming/Ubisoft/Anno1404/Config/Engine.ini"
|
||||
fi
|
||||
}
|
||||
|
@ -5,6 +5,6 @@
|
||||
################################################
|
||||
export PW_VULKAN_USE=0
|
||||
export LAUNCH_PARAMETERS=""
|
||||
if [ -d "${PATH_TO_GAME}"/Movies ] ; then
|
||||
if [[ -d "${PATH_TO_GAME}"/Movies ]] ; then
|
||||
mv "${PATH_TO_GAME}"/Movies "${PATH_TO_GAME}"/Movies_bak
|
||||
fi
|
||||
|
@ -13,7 +13,7 @@ export PW_WINE_USE="WINE_LG"
|
||||
|
||||
add_in_start_portwine ()
|
||||
{
|
||||
if [ -e "${WINEPREFIX}/drive_c/users/${USER}/Local Settings/Application Data/GOG.com/Galaxy/Configuration/config.json" ] ; then
|
||||
if [[ -e "${WINEPREFIX}/drive_c/users/${USER}/Local Settings/Application Data/GOG.com/Galaxy/Configuration/config.json" ]] ; then
|
||||
sed -i 's/"featureOverlay" : true,/"featureOverlay" : false,/' "${WINEPREFIX}/drive_c/${USER}/Local Settings/Application Data/GOG.com/Galaxy/Configuration/config.json"
|
||||
fi
|
||||
}
|
||||
|
@ -11,13 +11,13 @@
|
||||
export PW_USE_D3D_EXTRAS=0
|
||||
## export DXVK_HUD=fps,devinfo
|
||||
#####################examples###########################
|
||||
while [ `pidof -s dotNetFx40_Full_x86_x64.exe` ] ; do
|
||||
if [ $? -eq 0 ] ; then
|
||||
while [[ $(pidof -s dotNetFx40_Full_x86_x64.exe) ]] ; do
|
||||
if [[ $? -eq 0 ]] ; then
|
||||
sleep 1
|
||||
else
|
||||
export dotnet_pids=`ps -ax | grep mscorsvw.exe | awk '{print $1}' | uniq`
|
||||
[ ! -z $dotnet_pids ]
|
||||
kill -n 9 $dotnet_pids
|
||||
dotnet_pids=$(ps -ax | grep mscorsvw.exe | awk '{print $1}' | uniq)
|
||||
export dotnet_pids
|
||||
[[ -n "$dotnet_pids" ]] && kill -n 9 "$dotnet_pids"
|
||||
sleep 1
|
||||
fi
|
||||
done
|
||||
|
@ -10,10 +10,10 @@ export WINEDLLOVERRIDES="gfclient0_msvc140=n;ucrtbase=b"
|
||||
#add_in_start_portwine () {
|
||||
#
|
||||
#while true; do
|
||||
# if [ -z "`pgrep GameforgeClient`" ]; then
|
||||
# if [[ -z "`pgrep GameforgeClient`" ]] ; then
|
||||
# sleep 1
|
||||
# else
|
||||
# while [ ! -z "`pgrep GameforgeClient`" ] ; do
|
||||
# while [[ -n "`pgrep GameforgeClient`" ]] ; do
|
||||
# killall -s KILL gfservice.exe
|
||||
# done
|
||||
# sleep 1
|
||||
|
@ -12,7 +12,7 @@ export MESA_EXTENSION_MAX_YEAR=2002
|
||||
export __GL_ExtensionStringVersion=17700
|
||||
add_in_start_portwine ()
|
||||
{
|
||||
if [ ! -e "$PATH_TO_GAME/0_Proton_PW_MoHAA" ] ; then
|
||||
if [[ ! -e "$PATH_TO_GAME/0_Proton_PW_MoHAA" ]] ; then
|
||||
touch "$PATH_TO_GAME/0_Proton_PW_MoHAA" && mv "$PATH_TO_GAME/main/newconfig.cfg" "$PATH_TO_GAME/main/newconfig.cfg.bak" && mv "$PATH_TO_GAME/main/configs/unnamedsoldier.cfg" "$PATH_TO_GAME/main/configs/unnamedsoldier.cfg.bak" && mv "$PATH_TO_GAME/mainta/newconfig.cfg" "$PATH_TO_GAME/mainta/newconfig.cfg.bak" && mv "$PATH_TO_GAME/mainta/configs/unnamedsoldier.cfg" "$PATH_TO_GAME/mainta/configs/unnamedsoldier.cfg.bak" && mv "$PATH_TO_GAME/maintt/newconfig.cfg" "$PATH_TO_GAME/maintt/newconfig.cfg.bak" && mv "$PATH_TO_GAME/maintt/configs/unnamedsoldier.cfg" "$PATH_TO_GAME/maintt/configs/unnamedsoldier.cfg.bak" &&
|
||||
echo '//
|
||||
// Video Card Family: NVidia GeForce
|
||||
|
Reference in New Issue
Block a user