Просмотр исходного кода

Removed 64-bit detection

A bug was reported with 64-bit executable of ut2004 that caused issues
with  the web interface. No fix for this so removed 64-bit option.
Daniel Gibbs 12 лет назад
Родитель
Сommit
111835ad4d
1 измененных файлов с 2 добавлено и 11 удалено
  1. 2 11
      UnrealTournament2004/ut2k4server

+ 2 - 11
UnrealTournament2004/ut2k4server

@@ -19,7 +19,6 @@ filesdir="${rootdir}/serverfiles"
 systemdir="${filesdir}/System"
 executabledir="${systemdir}"
 executable="./ucc-bin"
-executable64="./ucc-bin-linux-amd64"
 compressedmapsdir="${rootdir}/Maps-Compressed"
 defaultcfg="${systemdir}/UT2004.ini"
 backupdir="backups"
@@ -199,11 +198,7 @@ sleep 1
 fn_scriptlog "Started debug mode ${servername}"
 echo -en "\n"
 cd "${executabledir}"
-if [ `getconf LONG_BIT` = "64" ]; then
-	${executable64} ${parms}
-else
-	${executable} ${parms}
-fi
+${executable} ${parms}
 }
 
 fn_console(){
@@ -537,11 +532,7 @@ if [ ${tmuxwc} -eq 1 ]; then
 	exit
 fi
 cd "${executabledir}"
-if [ `getconf LONG_BIT` = "64" ]; then
-	tmux new-session -d -s ${servicename} "${executable64} ${parms}|tee -a '${consolelog}'"
-else
-	tmux new-session -d -s ${servicename} "${executable} ${parms}|tee -a '${consolelog}'"
-fi
+tmux new-session -d -s ${servicename} "${executable} ${parms}|tee -a '${consolelog}'"
 sleep 1
 tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -E "^${servicename}:"|wc -l)
 if [ ${tmuxwc} -eq 0 ]; then