[Bf-committers] Re: New file magic and proposed change

GSR gsr.b3d at infernal-iceberg.com
Mon Nov 27 22:32:34 CET 2006


After some kindly provided files in IRC for the progress of science,
here is an improved file magic. Tested results:

Blender3D, saved as 32-bits little endian with version 2.37
Blender3D, saved as 64-bits little endian with version 2.42.0001
Blender3D, saved as 32-bits little endian with version 2.42.0001
Blender3D, saved as 32-bits big endian with version 2.33
Blender3D, saved as 32-bits big endian with version 2.42.0001

So if anybody has CVS 64 bits, big endian, that is the only one
missing.

GSR
 
-------------- next part --------------
# blender: file(1) magic for Blender 3D data files
#
# Rule version: 1.2. For questions use the developers list 
# http://projects.blender.org/mailman/listinfo/bf-committers
# GLOB chunk was moved near start and provides subversion info since 2.42 

0		string	=BLENDER        Blender3D,
>7		string	=_		saved as 32-bits
>>8		string	=v		little endian
>>>9		byte	x		with version %c.
>>>10		byte	x		\b%c
>>>11		byte	x		\b%c
>>>0x40		string	=GLOB		\b.
>>>>0x58        leshort	x		\b%.4d
>>8		string	=V		big endian
>>>9		byte	x		with version %c.
>>>10		byte	x		\b%c
>>>11		byte	x		\b%c
>>>0x40		string	=GLOB		\b.
>>>>0x58	beshort	x		\b%.4d
>7		string	=-		saved as 64-bits
>>8		string	=v		little endian
>>9		byte	x		with version %c.
>>10	        byte	x		\b%c
>>11		byte	x		\b%c
>>0x44		string	=GLOB		\b.
>>>0x60		leshort	x		\b%.4d
>>8		string	=V		big endian
>>>9		byte	x		with version %c.
>>>10		byte	x		\b%c
>>>11		byte	x		\b%c
>>>0x44		string	=GLOB		\b.
>>>>0x60	beshort	x		\b%.4d


More information about the Bf-committers mailing list