From 512a409f34a590583b839253b096966f89375d63 Mon Sep 17 00:00:00 2001
From: bakustarver <66978329+bakustarver@users.noreply.github.com>
Date: Wed, 6 Nov 2024 09:25:28 +0200
Subject: [PATCH] Update rpgmaker-linux-cicpoffs-wrapper.sh

---
 .../rpgmaker-linux-cicpoffs-wrapper.sh                        | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/nwjs/packagefiles/rpgmaker-linux-steam-wrapper/rpgmaker-linux-cicpoffs-wrapper.sh b/nwjs/packagefiles/rpgmaker-linux-steam-wrapper/rpgmaker-linux-cicpoffs-wrapper.sh
index f777734..74674c6 100644
--- a/nwjs/packagefiles/rpgmaker-linux-steam-wrapper/rpgmaker-linux-cicpoffs-wrapper.sh
+++ b/nwjs/packagefiles/rpgmaker-linux-steam-wrapper/rpgmaker-linux-cicpoffs-wrapper.sh
@@ -16,6 +16,10 @@ if [[ $2 == *"iscriptevaluator.exe"* ]]; then
   exit 0
 fi
 
+if [ -z "$SteamAppId" ]; then
+  echo "no steam app id"
+  exit 0
+fi
 export LC_ALL=""
 startset=$(echo "$@" | sed -e 's@waitforexitandrun @@g' -e 's@ --in-process-gpu@@g')
 export gamef=$(dirname "$startset")