fix_cmw.sh 669 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. # LinuxGSM fix_cmw.sh module
  3. # Author: Daniel Gibbs
  4. # Contributors: http://linuxgsm.com/contrib
  5. # Website: https://linuxgsm.com
  6. # Description: Resolves issues with Chivalry: Medieval Warfare.
  7. moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  8. if [ ! -f "${executabledir}/steam_appid.txt" ]; then
  9. fixname="steam_appid.txt"
  10. fn_fix_msg_start
  11. echo 219640 > "${executabledir}/steam_appid.txt"
  12. fn_fix_msg_end
  13. fi
  14. if [ ! -f "${servercfgfullpath}" ]; then
  15. fn_fix_msg_start
  16. fixname="copy config"
  17. if [ ! -d "${servercfgdir}" ]; then
  18. mkdir -p "${servercfgdir}"
  19. fi
  20. cp "${systemdir}/UDKGame/Config/"*.ini "${servercfgdir}"
  21. fn_fix_msg_end
  22. fi