瀏覽代碼

Improved support for glibcfixes with Gmod

Daniel Gibbs 9 年之前
父節點
當前提交
8a6d7b92b7
共有 2 個文件被更改,包括 17 次插入1 次删除
  1. 17 1
      lgsm/functions/fix_glibc.sh
  2. 二進制
      lgsm/lib/ubuntu12.04/i386/libpthread.so.0

+ 17 - 1
lgsm/functions/fix_glibc.sh

@@ -16,7 +16,7 @@ do
 	fi
 done
 
-local libm_servers_array=( "Double Action: Boogaloo" "Fistful of Frags" "Insurgency" "Natural Selection 2" "NS2: Combat" "No More Room in Hell" )
+local libm_servers_array=( "Double Action: Boogaloo" "Fistful of Frags" "Garry's Mod" "Insurgency" "Natural Selection 2" "NS2: Combat" "No More Room in Hell" )
 for libm_server in "${libm_servers_array[@]}"
 do
 	if [ "${gamename}" == "${libm_server}" ]; then
@@ -24,4 +24,20 @@ do
 	fi
 done
 
+local libc_servers_array=( "Garry's Mod" )
+for libc_server in "${libc_servers_array[@]}"
+do
+	if [ "${gamename}" == "${libc_server}" ]; then
+		fn_fetch_file_github "lgsm/lib/ubuntu12.04/i386" "libc.so.6" "${lgsmdir}/lib" "noexecutecmd" "norun" "noforce" "nomd5"
+	fi
+done
+
+local libpthread_servers_array=( "Garry's Mod" )
+for libpthread_server in "${libpthread_servers_array[@]}"
+do
+	if [ "${gamename}" == "${libpthread_server}" ]; then
+		fn_fetch_file_github "lgsm/lib/ubuntu12.04/i386" "libpthread.so.0" "${lgsmdir}/lib" "noexecutecmd" "norun" "noforce" "nomd5"
+	fi
+done
+
 export LD_LIBRARY_PATH=:"${libdir}"

二進制
lgsm/lib/ubuntu12.04/i386/libpthread.so.0