Skip to content

Commit 108dd27

Browse files
committed
feat: add arch check to prevent arm devices from working as not supported
1 parent 72bb39e commit 108dd27

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lgsm/modules/check_system_requirements.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
99

1010
info_distro.sh
1111

12-
# RAM requirements in gigabytes for each game or engine.
12+
if [[ "${arch}" != "x86_64" && "${arch}" != "i386" && "${arch}" != "i686" ]]; then
13+
echo -e "${red}Error: Only x86 type architectures are supported. Detected architecture: ${arch}${default}"
14+
fn_script_log_error "Only x86 type architectures are supported. Detected architecture: ${arch}"
15+
core_exit.sh
16+
fi
1317

1418
if [ "${shortname}" == "ark" ]; then
1519
ramrequirementgb="7"

0 commit comments

Comments
 (0)