mirror of
https://github.com/yuzu-emu/discord-rpc
synced 2024-11-26 02:57:44 +00:00
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);
|
||||
}
|
||||
|
||||
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