Removed unneeded pushd.

This commit is contained in:
Storm Dragon 2024-12-23 21:36:26 -05:00
parent a01f34dd02
commit ef1c67a116

View File

@ -522,15 +522,14 @@ game_launcher() {
if [[ $menuCode -eq 1 ]]; then
exit 0
fi
pushd "${selectedGame%/*}"
if file "${selectedGame##*/}" | grep -q "ELF.*x86-64"; then
if [[ "$(uname -m)" != "x86_64" ]]; then
exec FEXLoader -- "${selectedGame#./}"
else
. "./${selectedGame##*/}"
. "${selectedGame}"
fi
else
. "./${selectedGame##*/}"
. "${selectedGame}"
fi
exit 0
}