From 108dd27c3280ea164e52e3111a17ad6e0b163080 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 24 Sep 2024 23:38:13 +0100 Subject: [PATCH] feat: add arch check to prevent arm devices from working as not supported --- lgsm/modules/check_system_requirements.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lgsm/modules/check_system_requirements.sh b/lgsm/modules/check_system_requirements.sh index a7314a0d8..7dd0551a5 100644 --- a/lgsm/modules/check_system_requirements.sh +++ b/lgsm/modules/check_system_requirements.sh @@ -9,7 +9,11 @@ moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" info_distro.sh -# RAM requirements in gigabytes for each game or engine. +if [[ "${arch}" != "x86_64" && "${arch}" != "i386" && "${arch}" != "i686" ]]; then + echo -e "${red}Error: Only x86 type architectures are supported. Detected architecture: ${arch}${default}" + fn_script_log_error "Only x86 type architectures are supported. Detected architecture: ${arch}" + core_exit.sh +fi if [ "${shortname}" == "ark" ]; then ramrequirementgb="7"