Convert to modern result code handling

This commit is contained in:
SuperMarioDaBom 2023-07-18 11:41:01 -07:00
parent 1779a4c727
commit 4108f4baad

View file

@ -42,7 +42,8 @@ func RegisterEx(err error, client *nex.Client, callID uint32, stationUrls []*nex
rmcResponseStream := nex.NewStreamOut(globals.SecureServer)
rmcResponseStream.WriteUInt32LE(0x10001) // Success
retval := nex.NewResultSuccess(nex.Errors.Core.Unknown)
rmcResponseStream.WriteResult(retval)
rmcResponseStream.WriteUInt32LE(globals.SecureServer.ConnectionIDCounter().Increment())
rmcResponseStream.WriteString(localStationURL)