display-name: "Games/Oregon Trail"
meta: {"Working": ["Packed file extraction", "Images", "Sounds"]}

if (file.name == "oregon.gxl")
{
	data(128) unknown
		file
		{
			unsigned8 unknown1
			fixed-string(11) name
			unsigned8 unknown2
			unsigned8 unknown3
			unsigned32 offset
			unsigned32 size
			unsigned8 unknown4
			unsigned8 unknown5
			unsigned8 unknown6
			unsigned8 unknown7
		} while ( file.position < first-offset )
}

if (file.name like ["*.ct", "*.ba", "*.an", "*.tx", "*.gb"])
{
	text
}

if (file.name like "*.sn")
{
	sound
	{
		channels: 1
            	samples-per-second: 16000
            	bits-per-sample: 8
            	volume: 255
	}
}

if (file.name like ["*.pc", "*.25", "*.16"])
{
	interpret-as "image-PCX"
}

if (file.name like "*.xm")
{
	folder: "Music"
}