Skip to content

Commit

Permalink
tf2vpk: Apparently non-vtfs can have texture flags
Browse files Browse the repository at this point in the history
r1 client_mp_zone_18.bsp.pak000 models/zone_18/light_fc_godray.vvc
  • Loading branch information
pg9182 committed Apr 15, 2024
1 parent d22670d commit bb1f96f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions vpk.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,6 @@ func (f *ValvePakFile) Deserialize(r io.Reader, path string) error {
f.Chunk = append(f.Chunk, e)

// assumptions based on observation
if f.Path != "" && e.TextureFlags != 0 && !strings.HasSuffix(f.Path, ".vtf") {
return fmt.Errorf("read file chunk: expected non-vtf to not have texture flags")
}
if e.LoadFlags != f.Chunk[0].LoadFlags {
return fmt.Errorf("read file chunk: expected load flags to be the same for all chunks")
}
Expand Down

0 comments on commit bb1f96f

Please sign in to comment.