summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-09-20 09:30:16 +0200
committerGitHub <noreply@github.com>2017-09-20 09:30:16 +0200
commit46c28a0acab5e9d3f61299cee5d3c150a5bc90a0 (patch)
treea2a390ae5f7e3bc027a468fa06050de8b156c8f7 /platform
parenta650908cf4b3c365b9fb8c5709d4754440376380 (diff)
parenta84093559cfc4038b44894441b494d1a395d510c (diff)
Merge pull request #11431 from endragor/game-center-player-id
Return player ID after connecting to Game Center [ci skip]
Diffstat (limited to 'platform')
-rw-r--r--platform/iphone/game_center.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/iphone/game_center.mm b/platform/iphone/game_center.mm
index c05bdea005..821ef2a3ab 100644
--- a/platform/iphone/game_center.mm
+++ b/platform/iphone/game_center.mm
@@ -89,6 +89,7 @@ Error GameCenter::connect() {
ret["type"] = "authentication";
if (player.isAuthenticated) {
ret["result"] = "ok";
+ ret["player_id"] = player.playerID;
GameCenter::get_singleton()->connected = true;
} else {
ret["result"] = "error";