Remove unused traverses

This commit is contained in:
RedBigz 2024-06-11 16:03:02 +10:00
parent 0cb2ee2c56
commit 89dfc14d4e
2 changed files with 2 additions and 5 deletions

View File

@ -57,9 +57,6 @@ class ReplayPatch
}
IPlayableVideo video = new Traverse(__instance).Field("m_replayVideo").GetValue() as IPlayableVideo;
int views = new Traverse(__instance).Field("m_replayViews").GetValue<int>();
CommentUI[] comments = new Traverse(__instance).Field("m_replayComments").GetValue() as CommentUI[];
GameObject States = __instance.m_videoPlayer.transform.parent.parent.parent.gameObject;
GameObject ShowVideoState = Util.FindObject(States, "ShowVideoState");
@ -71,7 +68,7 @@ class ReplayPatch
SpookedUploader uploader = new();
uploader.Upload(video, views, comments, () =>
uploader.Upload(video, () =>
{
UploadingState.SetActive(false);

View File

@ -44,7 +44,7 @@ class SpookedUploader
}
WebSocket ws;
public void Upload(IPlayableVideo cameraRecording, int views, CommentUI[] comments, Action onUpload)
public void Upload(IPlayableVideo cameraRecording, Action onUpload)
{
if (cameraRecording.TryGetVideoPath(out string path))
{