Pass Engine.LaunchPath from linux launchers.
This commit is contained in:
5
Makefile
5
Makefile
@@ -441,10 +441,11 @@ install-man-page: man-page
|
|||||||
install-linux-scripts:
|
install-linux-scripts:
|
||||||
@echo "#!/bin/sh" > openra
|
@echo "#!/bin/sh" > openra
|
||||||
@echo 'cd "$(gameinstalldir)"' >> openra
|
@echo 'cd "$(gameinstalldir)"' >> openra
|
||||||
|
# Note: this relies on the non-standard -f flag implemented by gnu readlink
|
||||||
ifeq ($(DEBUG), $(filter $(DEBUG),false no n off 0))
|
ifeq ($(DEBUG), $(filter $(DEBUG),false no n off 0))
|
||||||
@echo 'mono OpenRA.Game.exe "$$@"' >> openra
|
@echo 'mono OpenRA.Game.exe Engine.LaunchPath="$(readlink -f $0)" "$$@"' >> openra
|
||||||
else
|
else
|
||||||
@echo 'mono --debug OpenRA.Game.exe "$$@"' >> openra
|
@echo 'mono --debug OpenRA.Game.exe Engine.LaunchPath="$(readlink -f $0)" "$$@"' >> openra
|
||||||
endif
|
endif
|
||||||
@echo 'if [ $$? != 0 -a $$? != 1 ]' >> openra
|
@echo 'if [ $$? != 0 -a $$? != 1 ]' >> openra
|
||||||
@echo 'then' >> openra
|
@echo 'then' >> openra
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# launch script (executed by Desura)
|
# Note: this relies on the non-standard -f flag implemented by gnu readlink
|
||||||
mono OpenRA.Game.exe "$@"
|
mono OpenRA.Game.exe Engine.LaunchPath="$(readlink -f $0)" "$@"
|
||||||
if [ $? != 0 -a $? != 1 ]
|
if [ $? != 0 -a $? != 1 ]
|
||||||
then
|
then
|
||||||
ZENITY=`which zenity` || echo "OpenRA needs zenity installed to display a graphical error dialog. See ~/.openra. for log files."
|
ZENITY=`which zenity` || echo "OpenRA needs zenity installed to display a graphical error dialog. See ~/.openra. for log files."
|
||||||
|
|||||||
Reference in New Issue
Block a user