diff --git a/plug-ins/Apple.GameKit/Native/GameKitWrapper/GKLocalPlayer.swift b/plug-ins/Apple.GameKit/Native/GameKitWrapper/GKLocalPlayer.swift index 5b08aa19..35ab129f 100644 --- a/plug-ins/Apple.GameKit/Native/GameKitWrapper/GKLocalPlayer.swift +++ b/plug-ins/Apple.GameKit/Native/GameKitWrapper/GKLocalPlayer.swift @@ -99,6 +99,15 @@ public func GKLocalPlayer_SetAuthenticateHandler } } +@_cdecl("GKLocalPlayer_RegisterLocalPlayerListener") +public func GKLocalPlayer_RegisterLocalPlayerListener +( +) +{ + GKLocalPlayer.local.unregisterAllListeners(); + GKLocalPlayer.local.register(_localPlayerListener); +} + @_cdecl("GKLocalPlayer_GetLocal") public func GKLocalPlayer_GetLocal (