Skip to content

Commit

Permalink
fix: adding define to support older versions of mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen authored Aug 13, 2023
1 parent 793fbce commit 86c29cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Assets/Mirage.Profiler/Runtime/NetworkInfoProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,13 @@ public string GetRpcName(NetworkDiagnostics.MessageInfo info)
}
}

#if !MIRROR_2022_9_OR_NEWER
private string GetRpcName(uint netId, int componentIndex, int functionIndex)
#else
private string GetRpcName(uint netId, int componentIndex, ushort functionIndex)
#endif
{
ushort hash = functionIndex;
var hash = functionIndex;
var remoteCallDelegate = RemoteProcedureCalls.GetDelegate(hash);
if (remoteCallDelegate != null)
{
Expand Down

0 comments on commit 86c29cd

Please sign in to comment.