Skip to content

Commit

Permalink
use cpu op mode variables to change Box86 and Minecraft Bedrock scrip…
Browse files Browse the repository at this point in the history
…t execution
  • Loading branch information
theofficialgman committed Jan 27, 2024
1 parent c476cbf commit c09bb36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions apps/Box86/install-64
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

if [ -z "$__cpu_op_mode_32" ]; then
error "User error: Box86 requires a CPU capable of executing ARM32 instructions. Your CPU is only capable of executing ARM64 instructions."
fi

PAGE_SIZE="$(getconf PAGE_SIZE)"
if [[ "$PAGE_SIZE" == "16384" ]]; then
#switch to 4K pagesize kernel
Expand Down
4 changes: 3 additions & 1 deletion apps/Minecraft Bedrock/install-64
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
# Get dependencies
# obtain model and jetson_model
get_model &>/dev/null
if [[ -z "$jetson_model" ]]; then
if [[ -z "$jetson_model" ]] && [ ! -z "$__cpu_op_mode_32" ]; then
sudo dpkg --add-architecture armhf
install_packages libx11-6:armhf libxext6:armhf libegl1:armhf zlib1g:armhf libstdc++6:armhf libgl1-mesa-dri:armhf libasound2:armhf libpulse0:armhf libcom-err2:armhf libgmp10:armhf libp11-kit0:armhf libsystemd0:armhf || exit 1
else
warning "Your system is only capable of running the ARM64 versions of Minecraft Bedrock. You will be unable to run older ARM32 versions of Minecraft Bedrock that you may find in this launcher."
fi

#Download file
Expand Down

0 comments on commit c09bb36

Please sign in to comment.