Răsfoiți Sursa

Changes for Garrys Mod

h3o66 11 ani în urmă
părinte
comite
670c164cf5
1 a modificat fișierele cu 41 adăugiri și 1 ștergeri
  1. 41 1
      functions/fn_getopt

+ 41 - 1
functions/fn_getopt

@@ -68,6 +68,44 @@ esac
 exit
 exit
 }
 }
 
 
+fn_getopt_gmodserver(){
+case "$getopt" in
+	start)
+		fn_start;;
+	stop)
+		fn_stop;;
+	restart)
+		fn_restart;;
+	update)
+		fn_update_check;;
+	validate)
+		fn_validate;;
+	monitor)
+		fn_monitor;;
+	email-test)
+		fn_email_test;;
+	details)
+		fn_details;;
+	backup)
+		fn_backup;;
+	console)
+		fn_console;;
+	debug)
+		fn_debug;;
+	install)
+		fn_install;;
+	auto-install)
+		fn_autoinstall;;
+	content)
+		fn_content_gmod;;
+	*)
+	echo "Usage: $0 {start|stop|restart|update|validate|monitor|email-test|details|backup|console|debug|install|auto-install|content}"
+	exit 1;;
+esac
+exit
+}
+
+
 fn_getopt_unreal(){
 fn_getopt_unreal(){
 case "$getopt" in
 case "$getopt" in
 	start)
 	start)
@@ -178,6 +216,8 @@ elif [ "${engine}" == "unreal2" ]; then
 	fi
 	fi
 elif [ "${engine}" == "unreal" ]; then
 elif [ "${engine}" == "unreal" ]; then
 	fn_getopt_unreal
 	fn_getopt_unreal
+elif [ "$gamename" == "Garry's Mod" ]; then
+	fn_getopt_gmodserver
 else
 else
 	fn_getopt_generic
 	fn_getopt_generic
-fi
+fi