Improvements to the launcher, move fex-emu check to launcher files.
This commit is contained in:
parent
ef1c67a116
commit
e1dd886fab
@ -1,2 +1,3 @@
|
|||||||
pushd "${installPath}"
|
check_architecture x86_64
|
||||||
"${installPath}/BallBouncer/BallBouncer"
|
pushd "${installPath}/BallBouncer"
|
||||||
|
${fex}./BallBouncer
|
||||||
|
@ -72,6 +72,7 @@ check_update() {
|
|||||||
# Check architecture compatibility
|
# Check architecture compatibility
|
||||||
check_architecture() {
|
check_architecture() {
|
||||||
if command -v FEXLoader &> /dev/null ; then
|
if command -v FEXLoader &> /dev/null ; then
|
||||||
|
export fex="FEXLoader -- "
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
local architecture="$(uname -m)"
|
local architecture="$(uname -m)"
|
||||||
@ -522,15 +523,7 @@ game_launcher() {
|
|||||||
if [[ $menuCode -eq 1 ]]; then
|
if [[ $menuCode -eq 1 ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
if file "${selectedGame##*/}" | grep -q "ELF.*x86-64"; then
|
. "${selectedGame}"
|
||||||
if [[ "$(uname -m)" != "x86_64" ]]; then
|
|
||||||
exec FEXLoader -- "${selectedGame#./}"
|
|
||||||
else
|
|
||||||
. "${selectedGame}"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
. "${selectedGame}"
|
|
||||||
fi
|
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user