Skip to content

Commit

Permalink
fixed .load_bsp not forcing branch if specified
Browse files Browse the repository at this point in the history
  • Loading branch information
snake-biscuits committed Dec 5, 2024
1 parent 631dbef commit 4cdf81d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bsp_tool/autodetect.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ def guess_from_stream(filename: str, bsp_file: io.BytesIO, force_branch: ModuleT
# identify branch script
if force_branch is None:
branch_script = branches.identify[(file_magic, version)]
else:
branch_script = force_branch
# TODO: warn on branches w/ overlapping (magic, version)
# -- could try to resolve w/ sprp version
# TODO: ata4's bspsrc uses unique entity classnames to identify branches
Expand Down

0 comments on commit 4cdf81d

Please sign in to comment.