Fix a couple errors in how Play Palace was being launched.
This commit is contained in:
+10
-7
@@ -27,18 +27,18 @@ run_wine() {
|
||||
local needNvda="${3:-}"
|
||||
pushd "$HOME/.local/games/$gameDir"
|
||||
if [[ "$(uname -m)" != "x86_64" ]]; then
|
||||
if [[ ${#needNvda} > 1 ]]; then
|
||||
systemctl --user start ${needNvda}.service
|
||||
if [[ ${#needNvda} -gt 1 ]]; then
|
||||
systemctl --user start "${needNvda}.service"
|
||||
FEXBash -c "wine \"$exeName\""
|
||||
systemctl --user stop ${needNvda}.service
|
||||
systemctl --user stop "${needNvda}.service"
|
||||
else
|
||||
FEXBash -c "wine $exeName"
|
||||
fi
|
||||
else
|
||||
if [[ ${#needNvda} > 1 ]]; then
|
||||
systemctl --user start ${needNvda}.service
|
||||
if [[ ${#needNvda} -gt 1 ]]; then
|
||||
systemctl --user start "${needNvda}.service"
|
||||
wine "$exeName"
|
||||
systemctl --user stop ${needNvda}.service
|
||||
systemctl --user stop "${needNvda}.service"
|
||||
else
|
||||
wine "$exeName"
|
||||
fi
|
||||
@@ -185,7 +185,7 @@ run_native() {
|
||||
"py")
|
||||
python3 "$exeName"
|
||||
;;
|
||||
"py")
|
||||
*)
|
||||
./"$exeName"
|
||||
;;
|
||||
esac
|
||||
@@ -339,6 +339,9 @@ case "$GAME" in
|
||||
"RS Games")
|
||||
run_wine "RS Games Client" "rsg.exe" "nvda2speechd-important"
|
||||
;;
|
||||
"Play Palace")
|
||||
exec /home/stormux/.playpalace
|
||||
;;
|
||||
"Scramble")
|
||||
run_wine "scramble_win32" "scramble.exe" "nvda2speechd"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user