Skip to content
Open
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
5 changes: 5 additions & 0 deletions unitypack/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ def extract_audioclip_samples(d) -> dict:
# eg. StreamedResource not available
return {}

if not d.data.startswith(b'FSB5'):
print("WARNING: %r does not seem to be an FSB file, extracting raw data" % (d,))
filename = "%s.raw" % (d.name,)
return { filename: d.data }

try:
from fsb5 import FSB5
except ImportError as e:
Expand Down