Fix param type
This commit is contained in:
parent
79eea99d19
commit
0d24fabdf4
2 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue