summaryrefslogtreecommitdiff
path: root/recipes-core/file-magic-db-images/files/Magdir/msdos
blob: 7b1330ef2b6c660c9ada5a4ef9b99c1a5ff34fca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

#------------------------------------------------------------------------------
# $File: msdos,v 1.105 2016/03/03 18:58:14 christos Exp $
# msdos:  file(1) magic for MS-DOS files
#

# Windows icons
# Update: Joerg Jenderek
# URL: https://en.wikipedia.org/wiki/CUR_(file_format)
# Note: similiar to Windows CURsor. container for BMP (only DIB part) or PNG
0   belong  0x00000100
>9  byte    0
>>0 byte    x           
>>0 use     cur-ico-dir
>9  ubyte   0xff
>>0 byte    x           
>>0 use     cur-ico-dir
#	displays number of icons and information for icon or cursor
0	name		cur-ico-dir
# skip some Lotus 1-2-3 worksheets, CYCLE.PIC and keep Windows cursors with
# 1st data offset = dir header size + n * dir entry size = 6 + n * 10h = ?6h
>18		ulelong		&0x00000006	
# skip remaining worksheets, because valid only for DIB image (40) or PNG image (\x89PNG)
>>(18.l)	ulelong		x		MS Windows
>>>0		ubelong		0x00000100	icon resource
#!:mime		image/vnd.microsoft.icon
!:mime		image/x-icon
!:ext		ico