Kaynağa Gözat

Added SS3 fix

Daniel Gibbs 8 yıl önce
ebeveyn
işleme
1325f6b994
2 değiştirilmiş dosya ile 16 ekleme ve 0 silme
  1. 2 0
      lgsm/functions/fix.sh
  2. 14 0
      lgsm/functions/fix_ss3.sh

+ 2 - 0
lgsm/functions/fix.sh

@@ -58,6 +58,8 @@ if [ "${function_selfname}" != "command_install.sh" ]; then
 		fix_rust.sh
 	elif [ "${shortname}" == "rw" ]; then
 		fix_rw.sh
+	elif [ "${shortname}" == "ss3" ]; then
+		fix_ss3.sh
 	elif [ "${gamename}" == "Multi Theft Auto" ]; then
 		fix_mta.sh
 	fi

+ 14 - 0
lgsm/functions/fix_ss3.sh

@@ -0,0 +1,14 @@
+#!/bin/bash
+# LinuxGSM fix_ss3.sh function
+# Author: Daniel Gibbs
+# Website: https://linuxgsm.com
+# Description: Resolves various issues with Serious Sam 3.
+
+local commandname="FIX"
+local commandaction="Fix"
+local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
+
+# Fixes https://steamcommunity.com/app/41070/discussions/0/353916981477716386/
+if [ "$(diff "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/Bin/steamclient.so" >/dev/null)" ]; then
+	cp -f "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/Bin/steamclient.so"
+fi