Просмотр исходного кода

feat: add arch check to prevent arm devices from working as not supported

Daniel Gibbs 1 год назад
Родитель
Сommit
108dd27c32
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      lgsm/modules/check_system_requirements.sh

+ 5 - 1
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"