Skip to content

Commit

Permalink
fix: support for recent demos with missing game event list
Browse files Browse the repository at this point in the history
  • Loading branch information
akiver committed Sep 22, 2024
1 parent 885d3d6 commit 03ad24e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/api/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ var eventListFolder embed.FS
func getGameEventListBinForProtocol(networkProtocol int) ([]byte, error) {
switch {
case networkProtocol < 13992:
return eventListFolder.ReadFile("event-list-dump/s2_CMsgSource1LegacyGameEventList.bin")
return eventListFolder.ReadFile("event-list-dump/13990.bin")
case networkProtocol <= 13992:
return eventListFolder.ReadFile("event-list-dump/13992.bin")
default:
return eventListFolder.ReadFile("event-list-dump/s2_CMsgSource1LegacyGameEventList_13992.bin")
return eventListFolder.ReadFile("event-list-dump/14023.bin")
}
}

Expand Down
File renamed without changes.
File renamed without changes.
Binary file added pkg/api/event-list-dump/14023.bin
Binary file not shown.

0 comments on commit 03ad24e

Please sign in to comment.