Skip to content

Commit

Permalink
Fixed bug in LevelUnlocker
Browse files Browse the repository at this point in the history
  • Loading branch information
rmsy committed Mar 7, 2012
1 parent ce90b63 commit 92a7978
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions levelunlocker.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
#LevelUnlocker by Isaac Moore
#v2
#2/23/12
#3/5/12

help() {
echo "LevelUnlocker: "
Expand Down Expand Up @@ -331,11 +331,11 @@ if [ ! -z "$appdir" ]; then
cd "$appdir"
cd ../Documents
highscore=$(plutil -key "highScoreEntry1" "gameState.plist")
score=$(sbalert -t "Tiny Wings" -m "This game supports high score editing. Enter a score higher than ${highscore}" -d "Modify" -a "Cancel" -p)
score=$(sbalert -t "Tiny Wings" -m "Enter a score higher than: ${highscore}" -d "Modify" -a "Cancel" -p)
response=$(echo $?)
if [ "$response" = "0" ]; then
plutil -key "highScoreEntry0" -value "$score" "gameState.plist" 2>&1> /dev/null
name=$(sbalert -t "Tiny Wings" -m "Enter a name to be associated with this score" -p)
name=$(sbalert -t "Tiny Wings" -m "Enter a name to be associated with this score:" -p)
plutil -key "highScoreNameEntry0" -value "$name" "gameState.plist" 2>&1> /dev/null
sbalert -t "Success!" -m "Tiny Wings' highscore was successfully changed! Huzzah!"
fi
Expand All @@ -346,7 +346,7 @@ fi
#By Isaac Moore

appdir=$(grep -i "Carcassonne.app" /tmp/App_list.tmp)
if [ ! -z "appdir" ]; then
if [ ! -z "$appdir" ]; then
networkStatus=$(sbnetwork foobar.com)
if [ "$networkStatus" = "FAILED" ]; then
if [ "$cui" = "-cui" ]; then
Expand Down

2 comments on commit 92a7978

@rmsy
Copy link
Collaborator Author

@rmsy rmsy commented on 92a7978 Mar 21, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Man this is an old repo... brings back memories! Hope you're doing well @xKairu.

@kylekz
Copy link
Owner

@kylekz kylekz commented on 92a7978 Mar 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rmsy 6 years ago... goddamn. You too man, last I knew you were doing some Minecraft stuff lmao

Please sign in to comment.