From 8f6d04c62197ddd0f5f26960cbc50fb06cd3dede Mon Sep 17 00:00:00 2001 From: ghorsington Date: Tue, 20 Jul 2021 10:44:07 +0300 Subject: [PATCH] Add error when using *nix build with Windows executable --- doorstop/run_bepinex.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doorstop/run_bepinex.sh b/doorstop/run_bepinex.sh index f6c674b..49c43d8 100644 --- a/doorstop/run_bepinex.sh +++ b/doorstop/run_bepinex.sh @@ -90,6 +90,12 @@ fi executable_type=`LD_PRELOAD="" file -b "${executable_path}"`; case $executable_type in + *PE32*) + echo "The executable is a Windows executable file. You must use Wine/Proton and BepInEx for Windows with this executable." + echo "Uninstall BepInEx for *nix and install BepInEx for Windows instead." + echo "More info: https://docs.bepinex.dev/articles/advanced/steam_interop.html#protonwine" + exit 1 + ;; *64-bit*) arch="x64" ;;