From 676d42bfe4ae769cab48759f5407f249f7bba060 Mon Sep 17 00:00:00 2001 From: Linus Weber Date: Sat, 11 Jul 2020 01:22:20 +0200 Subject: [PATCH] updated demoinfocs library to latest minor version --- go.mod | 5 ++++- go.sum | 6 ++++++ match/match.go | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 766c477..cd3ff97 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,8 @@ require ( github.com/golang/geo v0.0.0-20200319012246-673a6f80352d github.com/jung-kurt/gofpdf v1.16.2 // indirect github.com/llgcode/draw2d v0.0.0-20200110163050-b96d8208fcfc // indirect - github.com/markus-wa/demoinfocs-golang v1.8.1 + github.com/markus-wa/demoinfocs-golang v1.11.0 + github.com/markus-wa/godispatch v1.3.0 // indirect github.com/markus-wa/quickhull-go v0.0.0-20190116183559-9fb9702adbda // indirect github.com/phpdave11/gofpdi v1.0.11 // indirect github.com/pkg/errors v0.9.1 // indirect @@ -22,3 +23,5 @@ require ( gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect gopkg.in/yaml.v2 v2.2.8 // indirect ) + +go 1.13 diff --git a/go.sum b/go.sum index d008c86..a9802fd 100644 --- a/go.sum +++ b/go.sum @@ -47,14 +47,20 @@ github.com/markus-wa/demoinfocs-golang v1.7.5 h1:tI1D2HJQPmX9ufR/f16vn5wLUxrqiwG github.com/markus-wa/demoinfocs-golang v1.7.5/go.mod h1:z4ZhJzjayrtPIMvpKyumA5lHz+IqDOvwcBzqw9m5N7g= github.com/markus-wa/demoinfocs-golang v1.8.1 h1:9aOO3kAQpxLg6TcYcGdzIKYz/mFy7sLgqisI+FAnJLY= github.com/markus-wa/demoinfocs-golang v1.8.1/go.mod h1:FHn7VZD46mpI97+n5t9OKbcBQRLsF2yrOV+DOnn/NwE= +github.com/markus-wa/demoinfocs-golang v1.11.0 h1:0VSWmeZ8kOeQIpit1+Kisf2KLtcCosNTjzPxhQkDdO8= +github.com/markus-wa/demoinfocs-golang v1.11.0/go.mod h1:89I5cRCmxICDQHt0KzWURFhGgKstC1rwqUrsmVckDcM= github.com/markus-wa/go-unassert v0.1.1 h1:Bn7NfuD85DFdUoGQREI3PWNT1m0THYbYazHmOVIPNYQ= github.com/markus-wa/go-unassert v0.1.1/go.mod h1:XEvrxR+trvZeMDfXcZPvzqGo6eumEtdk5VjNRuvvzxQ= +github.com/markus-wa/go-unassert v0.1.2 h1:uXWlMDa8JVtc4RgNq4XJIjyRejv9MOVuy/E0VECPxxo= +github.com/markus-wa/go-unassert v0.1.2/go.mod h1:XEvrxR+trvZeMDfXcZPvzqGo6eumEtdk5VjNRuvvzxQ= github.com/markus-wa/gobitread v0.2.2 h1:4Z4oJ8Bf1XnOy6JZ2/9AdFKVAoxdq7awRjrb+j2BeSQ= github.com/markus-wa/gobitread v0.2.2/go.mod h1:PcWXMH4gx7o2CKslbkFkLyJB/aHW7JVRG3MRZe3PINg= github.com/markus-wa/godispatch v1.1.0 h1:J8O+hRkOCexDUQevaSKWDtKeZ3+HcmbEUKY1uYraAjY= github.com/markus-wa/godispatch v1.1.0/go.mod h1:6o18u24oo58yseMXYD0zQFI6LbSkjJSSBQ4YyDqFX5c= github.com/markus-wa/godispatch v1.2.1 h1:Bj6blK4xJ/72pDi0rprVYluOGW9CV55FUDFPApyw91Q= github.com/markus-wa/godispatch v1.2.1/go.mod h1:GNzV7xdnZ9+VBi0z+hma9oUQrJmtqRrqyAuGKTTTcKY= +github.com/markus-wa/godispatch v1.3.0 h1:eHT5Xm8ZEwilj9b/Tu7gyMfmtSau+yC0qpM7NRR+CQk= +github.com/markus-wa/godispatch v1.3.0/go.mod h1:GNzV7xdnZ9+VBi0z+hma9oUQrJmtqRrqyAuGKTTTcKY= github.com/markus-wa/quickhull-go v0.0.0-20190116183559-9fb9702adbda h1:F7blFtp+y3qD7GE+9mY3YLtUGnmE+6CSlwwAxEl/q5Y= github.com/markus-wa/quickhull-go v0.0.0-20190116183559-9fb9702adbda/go.mod h1:gMPnFb0DpuzRpbHesp64Nq4oFXE5SglAD86nlKrkETs= github.com/markus-wa/quickhull-go/v2 v2.1.0 h1:DA2pzEzH0k5CEnlUsouRqNdD+jzNFb4DBhrX4Hpa5So= diff --git a/match/match.go b/match/match.go index 4f519ed..b65618e 100644 --- a/match/match.go +++ b/match/match.go @@ -52,6 +52,7 @@ func NewMatch(demoFileName string, fallbackFrameRate, fallbackTickRate float64) defer demo.Close() parser := dem.NewParser(demo) + defer parser.Close() header, err := parser.ParseHeader() if err != nil { return nil, err