From 87a9c4c0699e46dd2e06cec228ecf3f9fcc54bba Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Tue, 10 Oct 2017 00:28:44 -0700 Subject: [PATCH] - automatically adjust megaglest binary to shim if detected --- mk/linux/tools-for-standalone-client/start_megaglest | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mk/linux/tools-for-standalone-client/start_megaglest b/mk/linux/tools-for-standalone-client/start_megaglest index c60ef752..0f9c348c 100755 --- a/mk/linux/tools-for-standalone-client/start_megaglest +++ b/mk/linux/tools-for-standalone-client/start_megaglest @@ -15,11 +15,15 @@ BugReportBoth="https://forum.megaglest.org/index.php?board=23.0" # useful for mods BugReportBoth2="$BugReportBoth" BugReportData="https://github.com/MegaGlest/megaglest-data/issues" + EXC_BINARY="megaglest" +if [ -f "${GAMEDIR}/megaglest_shim" ]; then EXC_BINARY="megaglest_shim" + SHORT_GAME_NAME="megaglest" # if long game name contain spaces then write it inside quotes # e.g. "\"long name with spaces\"" LONG_GAME_NAME="MegaGlest" + # ------- LIBDIR="lib"; ExitStatus=0; LibsWarnings=""; IgnoredLibs=""; FirstLnError="" LibDir_wP="$GAMEDIR/$LIBDIR"; LIBDIR_B=".${LIBDIR}_bak"; LibDirB_wP="$GAMEDIR/$LIBDIR_B"