aboutsummaryrefslogtreecommitdiff
path: root/messages/header.go
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2022-11-06 17:27:56 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-09-16 21:39:36 +0300
commitb8c9cdc9996706047b605fcb179161a678fcb8db (patch)
tree9e8b7b345e8e9a6533ed4e1a7257b78f5f01ec8d /messages/header.go
parentclass parses and other stuff (diff)
downloadsdp.go-b8c9cdc9996706047b605fcb179161a678fcb8db.tar.gz
sdp.go-b8c9cdc9996706047b605fcb179161a678fcb8db.tar.bz2
sdp.go-b8c9cdc9996706047b605fcb179161a678fcb8db.zip
changed github username + other stuff that i don't remember
Diffstat (limited to 'messages/header.go')
-rw-r--r--messages/header.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/messages/header.go b/messages/header.go
index 6320c71..34b36d3 100644
--- a/messages/header.go
+++ b/messages/header.go
@@ -4,8 +4,8 @@ import (
4 "fmt" 4 "fmt"
5 "os" 5 "os"
6 6
7 "github.com/bisaxa/bitreader" 7 "github.com/pektezol/bitreader"
8 "github.com/bisaxa/demoparser/utils" 8 "github.com/pektezol/demoparser/utils"
9) 9)
10 10
11func ParseHeader(file *os.File) { 11func ParseHeader(file *os.File) {
@@ -22,5 +22,8 @@ func ParseHeader(file *os.File) {
22 header.PlaybackTicks = int32(reader.TryReadInt32()) 22 header.PlaybackTicks = int32(reader.TryReadInt32())
23 header.PlaybackFrames = int32(reader.TryReadInt32()) 23 header.PlaybackFrames = int32(reader.TryReadInt32())
24 header.SignOnLength = int32(reader.TryReadInt32()) 24 header.SignOnLength = int32(reader.TryReadInt32())
25 if header.DemoProtocol != 4 { // Old Engine == 2, 3 / New Engine == 4
26 panic("Only New Engine is supported.")
27 }
25 fmt.Printf("%+v", header) 28 fmt.Printf("%+v", header)
26} 29}