Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: y8s4 missing players #79

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion dissect/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ func (r *Reader) readChunkedData(br *bufio.Reader) error {
}
pattern := []byte{0x32, 0x30, 0x30, 0x56, 0x52, 0x50, 0x4D, 0x43}
i := 0
r.b = []byte{}
zstdReader, _ := zstd.NewReader(bytes.NewReader([]byte{}))
for !errors.Is(err, io.EOF) {
log.Debug().Msg("scanning for dissect frame")
Expand Down Expand Up @@ -160,6 +159,7 @@ type match struct {
func (r *Reader) worker(start int, end int, wg *sync.WaitGroup, matches chan<- match) {
defer wg.Done()
indexes := make([]int, len(r.queries))
log.Debug().Int("start", start).Int("end", end).Msg("worker")
for i := start; i <= end; i++ {
for j, query := range r.queries {
if r.b[i] == query[indexes[j]] {
Expand Down Expand Up @@ -338,3 +338,7 @@ func (r *Reader) Uint64() (uint64, error) {
}
return binary.LittleEndian.Uint64(b), nil
}

func (r *Reader) Write(w io.Writer) (n int, err error) {
return w.Write(r.b)
}
Binary file not shown.

This file was deleted.

Binary file not shown.
Loading
Loading