Fix param type

This commit is contained in:
Chris Marsh 2017-11-30 12:23:40 -08:00 committed by Chris Marsh
parent 79eea99d19
commit 0d24fabdf4
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,7 @@ public class DiscordController : MonoBehaviour
onSpectate.Invoke(secret); onSpectate.Invoke(secret);
} }
public void RequestCallback(DiscordRpc.JoinRequest request) public void RequestCallback(ref DiscordRpc.JoinRequest request)
{ {
++callbackCalls; ++callbackCalls;
Debug.Log(string.Format("Discord: join request {0}#{1}: {2}", request.username, request.discriminator, request.userId)); Debug.Log(string.Format("Discord: join request {0}#{1}: {2}", request.username, request.discriminator, request.userId));

View file

@ -18,7 +18,7 @@ public class DiscordRpc
public delegate void SpectateCallback(string secret); public delegate void SpectateCallback(string secret);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void RequestCallback(JoinRequest request); public delegate void RequestCallback(ref JoinRequest request);
public struct EventHandlers public struct EventHandlers
{ {