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:-}" local needNvda="${3:-}"
pushd "$HOME/.local/games/$gameDir" pushd "$HOME/.local/games/$gameDir"
if [[ "$(uname -m)" != "x86_64" ]]; then if [[ "$(uname -m)" != "x86_64" ]]; then
if [[ ${#needNvda} > 1 ]]; then if [[ ${#needNvda} -gt 1 ]]; then
systemctl --user start ${needNvda}.service systemctl --user start "${needNvda}.service"
FEXBash -c "wine \"$exeName\"" FEXBash -c "wine \"$exeName\""
systemctl --user stop ${needNvda}.service systemctl --user stop "${needNvda}.service"
else else
FEXBash -c "wine $exeName" FEXBash -c "wine $exeName"
fi fi
else else
if [[ ${#needNvda} > 1 ]]; then if [[ ${#needNvda} -gt 1 ]]; then
systemctl --user start ${needNvda}.service systemctl --user start "${needNvda}.service"
wine "$exeName" wine "$exeName"
systemctl --user stop ${needNvda}.service systemctl --user stop "${needNvda}.service"
else else
wine "$exeName" wine "$exeName"
fi fi
@@ -185,7 +185,7 @@ run_native() {
"py") "py")
python3 "$exeName" python3 "$exeName"
;; ;;
"py") *)
./"$exeName" ./"$exeName"
;; ;;
esac esac
@@ -339,6 +339,9 @@ case "$GAME" in
"RS Games") "RS Games")
run_wine "RS Games Client" "rsg.exe" "nvda2speechd-important" run_wine "RS Games Client" "rsg.exe" "nvda2speechd-important"
;; ;;
"Play Palace")
exec /home/stormux/.playpalace
;;
"Scramble") "Scramble")
run_wine "scramble_win32" "scramble.exe" "nvda2speechd" run_wine "scramble_win32" "scramble.exe" "nvda2speechd"
;; ;;
+1 -1
View File
@@ -1103,7 +1103,7 @@ if __name__ == "__main__":
# Add board and card games section # Add board and card games section
menu.add_section("Board and Card Games") menu.add_section("Board and Card Games")
menu.add_item("Board and Card Games", "Play Palace", "/home/stormux/.playpalace") menu.add_item("Board and Card Games", "Play Palace", "GAME='Play Palace' startx")
menu.add_item("Board and Card Games", "RS Games", "GAME='RS Games' startx") menu.add_item("Board and Card Games", "RS Games", "GAME='RS Games' startx")
# Add emulators section # Add emulators section