summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorromulox_x <romulox_x@yahoo.com>2015-05-23 19:04:02 -0700
committerromulox_x <romulox_x@yahoo.com>2015-05-23 19:04:02 -0700
commit94638e7bfeec8feac553ecd80cd7e4efff04f2a5 (patch)
treec75e59392c79985a1ab4a6b564566061ead3175e /platform
parent93e797f1649cfbdd5748956feb245ee27c75c996 (diff)
added data to descriptions dictionary that was missing. Made the elements that sound weird as plurals consistently singular. changed int arrays to bool arrays in descriptions
Diffstat (limited to 'platform')
-rw-r--r--platform/iphone/game_center.mm16
1 files changed, 11 insertions, 5 deletions
diff --git a/platform/iphone/game_center.mm b/platform/iphone/game_center.mm
index a058536685..9b4018a4ba 100644
--- a/platform/iphone/game_center.mm
+++ b/platform/iphone/game_center.mm
@@ -177,8 +177,8 @@ void GameCenter::request_achievement_descriptions() {
StringArray unachieved_descriptions;
StringArray achieved_descriptions;
IntArray maximum_points;
- IntArray hidden;
- IntArray replayable;
+ Array hidden;
+ Array replayable;
for (int i=0; i<[descriptions count]; i++) {
@@ -198,12 +198,18 @@ void GameCenter::request_achievement_descriptions() {
maximum_points.push_back(description.maximumPoints);
- hidden.push_back(description.hidden == YES ? 1 : 0);
+ hidden.push_back(description.hidden == YES);
- replayable.push_back(description.replayable == YES ? 1 : 0);
+ replayable.push_back(description.replayable == YES);
}
ret["names"] = names;
+ ret["titles"] = titles;
+ ret["unachieved_descriptions"] = unachieved_descriptions;
+ ret["achieved_descriptions"] = achieved_descriptions;
+ ret["maximum_points"] = maximum_points;
+ ret["hidden"] = hidden;
+ ret["replayable"] = replayable;
} else {
ret["result"] = "error";
@@ -236,7 +242,7 @@ void GameCenter::request_achievements() {
}
ret["names"] = names;
- ret["progresses"] = percentages;
+ ret["progress"] = percentages;
} else {
ret["result"] = "error";