Use magic numbers to determine which filetype is the input.
if the first 4 bytes match 'Yaz0' then extract it and then read models from it's /, /bdl*, /bmd* and /bmw*.
it the first 3 bytes match 'J3D', then read it as a BMD file, and open all anim files in the same way it does now.
otherwise, just return an error saying it's not a valid J3D or Yaz0 file.
Use magic numbers to determine which filetype is the input. if the first 4 bytes match 'Yaz0' then extract it and then read models from it's
/
,/bdl*
,/bmd*
and/bmw*
. it the first 3 bytes match 'J3D', then read it as a BMD file, and open all anim files in the same way it does now. otherwise, just return an error saying it's not a valid J3D or Yaz0 file.