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"
|
||||
;;
|
||||
|
||||
@@ -1103,7 +1103,7 @@ if __name__ == "__main__":
|
||||
|
||||
# Add board and card games section
|
||||
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")
|
||||
|
||||
# Add emulators section
|
||||
|
||||
Reference in New Issue
Block a user