From c5b55044e686c40d187b916e777d9995274c8032 Mon Sep 17 00:00:00 2001
From: Daniel Gibbs <me@danielgibbs.co.uk>
Date: Sun, 9 Aug 2015 20:57:39 +0100
Subject: [PATCH] Changed from unreal4 to ark

Im unsure if unreal4 engine will be the same config setup as ark
---
 functions/fn_details        | 6 +++---
 functions/fn_details_config | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/functions/fn_details b/functions/fn_details
index 4313a0a8b..055142ee7 100644
--- a/functions/fn_details
+++ b/functions/fn_details
@@ -640,7 +640,7 @@ rm -f .fn_details_webadmin
 fn_details_statusbottom
 }
 
-fn_details_unreal4(){
+fn_details_ark(){
 fn_check_ip
 pid=$(tmux list-sessions 2>&1 | awk '{print $1}' | grep -Ec "^${servicename}:")
 fn_parms
@@ -707,8 +707,8 @@ elif [ "${engine}" == "unity3d" ]; then
 	fn_details_unity3d
 elif [ "${engine}" == "unreal" ] || [ "${engine}" == "unreal2" ]; then
 	fn_details_unreal
-elif [ "${engine}" == "unreal4" ]; then
-	fn_details_unreal4
+elif [ "${gamename}" == "ARK: Survivial Evolved" ]; then
+	fn_details_ark
 elif [ "${gamename}" == "Teamspeak 3" ]; then
 	fn_details_teamspeak3
 else
diff --git a/functions/fn_details_config b/functions/fn_details_config
index 64284e05e..c85ea2316 100644
--- a/functions/fn_details_config
+++ b/functions/fn_details_config
@@ -643,7 +643,7 @@ elif [ "${engine}" == "unreal" ] || [ "${engine}" == "unreal2" ]; then
 		fi
 
 	fi
-elif [ "${engine}" == "unreal4" ]; then
+elif [ "${gamename}" == "ARK: Survivial Evolved" ]; then
 
 	# server name
 	if [ -f "${servercfgfullpath}" ]; then