mirror of
https://github.com/yuzu-emu/discord-rpc.git
synced 2024-12-22 18:45:38 +00:00
Fix param type
This commit is contained in:
parent
79eea99d19
commit
0d24fabdf4
|
@ -68,7 +68,7 @@ public class DiscordController : MonoBehaviour
|
|||
onSpectate.Invoke(secret);
|
||||
}
|
||||
|
||||
public void RequestCallback(DiscordRpc.JoinRequest request)
|
||||
public void RequestCallback(ref DiscordRpc.JoinRequest request)
|
||||
{
|
||||
++callbackCalls;
|
||||
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);
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public delegate void RequestCallback(JoinRequest request);
|
||||
public delegate void RequestCallback(ref JoinRequest request);
|
||||
|
||||
public struct EventHandlers
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue