Fix a couple errors in how Play Palace was being launched.

This commit is contained in:
Storm Dragon
2026-04-19 14:26:31 -04:00
parent 89d2d99e92
commit f79c124c0c
2 changed files with 11 additions and 8 deletions
+10 -7
View File
@@ -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"
;;