From e1dd886fab1bb2bc66cede657ce8e2fa94e2d424 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 23 Dec 2024 22:01:09 -0500 Subject: [PATCH] Improvements to the launcher, move fex-emu check to launcher files. --- .launch/Ball Bouncer.game | 5 +++-- linux-game-manager.sh | 11 ++--------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.launch/Ball Bouncer.game b/.launch/Ball Bouncer.game index 8a800ca..9f819d4 100644 --- a/.launch/Ball Bouncer.game +++ b/.launch/Ball Bouncer.game @@ -1,2 +1,3 @@ -pushd "${installPath}" -"${installPath}/BallBouncer/BallBouncer" +check_architecture x86_64 +pushd "${installPath}/BallBouncer" +${fex}./BallBouncer diff --git a/linux-game-manager.sh b/linux-game-manager.sh index e747b04..ec1cf2a 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -72,6 +72,7 @@ check_update() { # Check architecture compatibility check_architecture() { if command -v FEXLoader &> /dev/null ; then + export fex="FEXLoader -- " return fi local architecture="$(uname -m)" @@ -522,15 +523,7 @@ game_launcher() { if [[ $menuCode -eq 1 ]]; then exit 0 fi - if file "${selectedGame##*/}" | grep -q "ELF.*x86-64"; then - if [[ "$(uname -m)" != "x86_64" ]]; then - exec FEXLoader -- "${selectedGame#./}" - else - . "${selectedGame}" - fi - else - . "${selectedGame}" - fi + . "${selectedGame}" exit 0 }