updated to new stream functions

This commit is contained in:
Jonathan Barrow 2023-11-18 15:25:50 -05:00
parent 7281dd5a52
commit 90a71d2ca2
No known key found for this signature in database
GPG Key ID: E86E9FE9049C741F
8 changed files with 12 additions and 12 deletions

View File

@ -25,7 +25,7 @@ func GetAllFriends(err error, packet nex.PacketInterface, callID uint32) (*nex.R
rmcResponseStream := nex.NewStreamOut(globals.SecureServer)
rmcResponseStream.WriteListStructure(friendRelationships)
nex.StreamWriteListStructure(rmcResponseStream, friendRelationships)
rmcResponseBody := rmcResponseStream.Bytes()

View File

@ -30,7 +30,7 @@ func GetFriendMii(err error, packet nex.PacketInterface, callID uint32, friends
rmcResponseStream := nex.NewStreamOut(globals.SecureServer)
rmcResponseStream.WriteListStructure(miiList)
nex.StreamWriteListStructure(rmcResponseStream, miiList)
rmcResponseBody := rmcResponseStream.Bytes()

View File

@ -31,7 +31,7 @@ func GetFriendPersistentInfo(err error, packet nex.PacketInterface, callID uint3
rmcResponseStream := nex.NewStreamOut(globals.SecureServer)
rmcResponseStream.WriteListStructure(infoList)
nex.StreamWriteListStructure(rmcResponseStream, infoList)
rmcResponseBody := rmcResponseStream.Bytes()

View File

@ -29,7 +29,7 @@ func GetFriendPresence(err error, packet nex.PacketInterface, callID uint32, pid
rmcResponseStream := nex.NewStreamOut(globals.SecureServer)
rmcResponseStream.WriteListStructure(presenceList)
nex.StreamWriteListStructure(rmcResponseStream, presenceList)
rmcResponseBody := rmcResponseStream.Bytes()

View File

@ -64,7 +64,7 @@ func SyncFriend(err error, packet nex.PacketInterface, callID uint32, lfc uint64
rmcResponseStream := nex.NewStreamOut(globals.SecureServer)
rmcResponseStream.WriteListStructure(friendRelationships)
nex.StreamWriteListStructure(rmcResponseStream, friendRelationships)
rmcResponseBody := rmcResponseStream.Bytes()

View File

@ -32,7 +32,7 @@ func GetBasicInfo(err error, packet nex.PacketInterface, callID uint32, pids []*
rmcResponseStream := nex.NewStreamOut(globals.SecureServer)
rmcResponseStream.WriteListStructure(infos)
nex.StreamWriteListStructure(rmcResponseStream, infos)
rmcResponseBody := rmcResponseStream.Bytes()

View File

@ -38,7 +38,7 @@ func GetRequestBlockSettings(err error, packet nex.PacketInterface, callID uint3
rmcResponseStream := nex.NewStreamOut(globals.SecureServer)
rmcResponseStream.WriteListStructure(settings)
nex.StreamWriteListStructure(rmcResponseStream, settings)
rmcResponseBody := rmcResponseStream.Bytes()

View File

@ -245,12 +245,12 @@ func UpdateAndGetAllInformation(err error, packet nex.PacketInterface, callID ui
rmcResponseStream.WriteStructure(principalPreference)
rmcResponseStream.WriteStructure(comment)
rmcResponseStream.WriteListStructure(friendList)
rmcResponseStream.WriteListStructure(friendRequestsOut)
rmcResponseStream.WriteListStructure(friendRequestsIn)
rmcResponseStream.WriteListStructure(blockList)
nex.StreamWriteListStructure(rmcResponseStream, friendList)
nex.StreamWriteListStructure(rmcResponseStream, friendRequestsOut)
nex.StreamWriteListStructure(rmcResponseStream, friendRequestsIn)
nex.StreamWriteListStructure(rmcResponseStream, blockList)
rmcResponseStream.WriteBool(false) // * Unknown
rmcResponseStream.WriteListStructure(notifications)
nex.StreamWriteListStructure(rmcResponseStream, notifications)
rmcResponseStream.WriteBool(false) // * Unknown
rmcResponseBody := rmcResponseStream.Bytes()