uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
25
pkgs/games/openra/mod-launch-game.sh
Normal file
25
pkgs/games/openra/mod-launch-game.sh
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env bash
|
||||
show_error() {
|
||||
if command -v zenity > /dev/null; then
|
||||
zenity --no-wrap --no-markup --error --title "OpenRA - @title@" --text "$1" 2>/dev/null
|
||||
else
|
||||
printf "$1\n" >&2
|
||||
fi
|
||||
exit 1
|
||||
}
|
||||
|
||||
cd "@out@/lib/openra-@name@"
|
||||
|
||||
# Check for missing assets
|
||||
assetsError='@assetsError@'
|
||||
if [[ -n "$assetsError" && ! -d "$HOME/.openra/Content/@name@" ]]; then
|
||||
show_error "$assetsError"
|
||||
fi
|
||||
|
||||
# Run the game
|
||||
mono --debug OpenRA.Game.exe Game.Mod=@name@ Engine.LaunchPath="@out@/bin/openra-@name@" Engine.ModSearchPaths="@out@/lib/openra-@name@/mods" "$@"
|
||||
|
||||
# Show a crash dialog if something went wrong
|
||||
if (( $? != 0 && $? != 1 )); then
|
||||
show_error $'OpenRA - @title@ has encountered a fatal error.\nPlease refer to the crash logs for more information.\n\nLog files are located in ~/.openra/Logs'
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue