From ed83d0870d9f9b78aefe0adbf58cf62746ade3fa Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Wed, 19 Jul 2023 13:37:10 -0700 Subject: add aur albion-online-launcher-bin --- .../albion-online-launcher-bin/Albion-Online.patch | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgbuilds/albion-online-launcher-bin/Albion-Online.patch (limited to 'pkgbuilds/albion-online-launcher-bin/Albion-Online.patch') diff --git a/pkgbuilds/albion-online-launcher-bin/Albion-Online.patch b/pkgbuilds/albion-online-launcher-bin/Albion-Online.patch new file mode 100644 index 0000000..3a7d3ae --- /dev/null +++ b/pkgbuilds/albion-online-launcher-bin/Albion-Online.patch @@ -0,0 +1,38 @@ +--- old 2022-08-09 09:07:35.000000000 -0600 ++++ new 2022-09-13 13:54:49.424249375 -0600 +@@ -1,16 +1,25 @@ + #!/bin/sh + SCRIPT=$(readlink -f "$0") + SCRIPTPATH=$(dirname "$SCRIPT") +-export QT_QPA_PLATFORM_PLUGIN_PATH="$SCRIPTPATH/launcher/plugins/platforms" +-export QT_PLUGIN_PATH="$SCRIPTPATH/launcher/plugins/" +-OSNAME=$(grep '^NAME=' /etc/os-release) +- +-if [ $OSNAME != "NAME=\"SteamOS\"" ]; then + export LIBGL_ALWAYS_SOFTWARE=1 + export QSG_INFO=1 +-"$SCRIPTPATH/launcher/Albion-Online" "--no-sandbox" "-loglevel 0" "$@" & +-else +-export QT_QPA_PLATFORM="xcb;eglfs" +-export __GL_GlslUseCollapsedArrays=0 +-"$SCRIPTPATH/launcher/Albion-Online" "--no-sandbox" "$@" & ++ ++LD_PRELOAD=\ ++/opt/albion-online-launcher-bin/launcher/libsteam_api.so \ ++"$SCRIPTPATH/launcher/Albion-Online" "--no-sandbox" "-loglevel 0" "$@" ++ ++declare exit_code=$? ++declare core_dump_msg="Core Dump can be produced by corrupt cache ++Clear user cache/configuration and try again! ++\trm -rf \"$HOME/.config/Sandbox Interactive GmbH\" ++\trm -rf \"$HOME/.config/unity3d/Sandbox Interactive GmbH\" ++\trm -rf \"$HOME/.local/share/Sandbox Interactive GmbH/Albion Online Launcher\" ++" ++ ++## Clear cache on core dump ++if (( $exit_code )); then ++ echo "Bad exit code: $exit_code" ++ if (( $exit_code >= 128 )); then ## Core Dump ++ printf "$core_dump_msg" ++ fi + fi -- cgit v1.2.3-70-g09d2