Add support for fex-emu to launch games. New install method tested and
doesn't seem to break anything, so merged with master.
This commit is contained in:
parent
e70926a1fb
commit
3bb5feedfa
@ -71,6 +71,9 @@ check_update() {
|
|||||||
|
|
||||||
# Check architecture compatibility
|
# Check architecture compatibility
|
||||||
check_architecture() {
|
check_architecture() {
|
||||||
|
if command -v FEXLoader &> /dev/null ; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
local architecture="$(uname -m)"
|
local architecture="$(uname -m)"
|
||||||
for i in "$@" ; do
|
for i in "$@" ; do
|
||||||
if [[ "${architecture}" == "$i" ]]; then
|
if [[ "${architecture}" == "$i" ]]; then
|
||||||
@ -541,7 +544,13 @@ game_launcher() {
|
|||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
pushd "${game%/*}"
|
pushd "${game%/*}"
|
||||||
|
if file "${game##*/}" | grep -q "ELF.*x86-64"; then
|
||||||
|
if [[ "$(uname -m)" != "x86_64" ]]; then
|
||||||
|
exec FEXLoader -- ${game}
|
||||||
|
else
|
||||||
exec ${game}
|
exec ${game}
|
||||||
|
fi
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
exit 0
|
exit 0
|
||||||
@ -621,8 +630,9 @@ while getopts "${args}" i ; do
|
|||||||
R) redownload="true" ;;
|
R) redownload="true" ;;
|
||||||
r) game_removal ;;
|
r) game_removal ;;
|
||||||
t)
|
t)
|
||||||
|
gameCount=$(find .install -type f -iname "*.sh" | wc -l)
|
||||||
dialog --backtitle "Linux Game Manager" \
|
dialog --backtitle "Linux Game Manager" \
|
||||||
--infobox "There are currently ${#gameList[@]} games available." -1 -1
|
--infobox "There are currently ${gameCount} games available." -1 -1
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
u) game_update ;;
|
u) game_update ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user