fix_tu.sh 793 B

12345678910111213141516171819
  1. #!/bin/bash
  2. # LinuxGSM fix_tu.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://linuxgsm.com
  5. # Description: Resolves various issues with Tower Unite.
  6. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  7. # Fixes: [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.
  8. if [ ! -f "${executabledir}/steamclient.so" ]; then
  9. fixname="steamclient.so x86_64"
  10. fn_fix_msg_start
  11. if [ -f "${HOME}/.steam/steamcmd/linux64/steamclient.so" ]; then
  12. cp "${HOME}/.steam/steamcmd/linux64/steamclient.so" "${executabledir}/steamclient.so" >> "${lgsmlog}"
  13. elif [ -f "${steamcmddir}/linux64/steamclient.so" ]; then
  14. cp "${steamcmddir}/linux64/steamclient.so" "${executabledir}/steamclient.so" >> "${lgsmlog}"
  15. fi
  16. fn_fix_msg_end
  17. fi