mirror of
https://gitlab.com/xonotic/xonotic
synced 2025-02-20 20:46:52 +00:00
update OS X startup scripts to force a 32bit arch on SDL and OS X 10.5 or lower
This commit is contained in:
parent
8306d9d7a7
commit
4f8198c9f1
@ -3,4 +3,16 @@
|
||||
export DYLD_LIBRARY_PATH="${0%/*}"
|
||||
# same dir as the executable
|
||||
|
||||
exec "$0"-bin "$@" -notexturenonpoweroftwo
|
||||
set -- "$0"-bin "$@" -notexturenonpoweroftwo
|
||||
|
||||
case "`sw_vers -productVersion`" in
|
||||
# shell pattern for "10.6 and higher"
|
||||
10.[6-9]*|10.[1-5][0-9]*|1[1-9]*|[2-9]*)
|
||||
# no workaround needed on 10.6+
|
||||
exec "$@"
|
||||
;;
|
||||
*)
|
||||
# need to force a 32bit arch on 10.5 and below
|
||||
exec arch -arch i386 -arch ppc "$@"
|
||||
;;
|
||||
esac
|
||||
|
@ -3,4 +3,6 @@
|
||||
export DYLD_LIBRARY_PATH="${0%/*}"
|
||||
# same dir as the executable
|
||||
|
||||
exec "$0"-bin "$@" -notexturenonpoweroftwo
|
||||
set -- "$0"-bin "$@" -notexturenonpoweroftwo
|
||||
|
||||
exec "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user