Esempio n. 1
0
//==========================================================================
// SV_WriteTexArchive
//==========================================================================
void SV_WriteTexArchive(texarchive_t * arc)
{
	int     i;

#if !__JHEXEN__
	SV_WriteShort(arc->count);
#else
	StreamOutWord(arc->count);
#endif
	for(i = 0; i < arc->count; i++)
	{
#if !__JHEXEN__
		SV_Write(arc->table[i].name, 8);
#else
		StreamOutBuffer(arc->table[i].name, 8);
#endif
	}
}
Esempio n. 2
0
void SV_WriteLong(unsigned int val)
{
    val = LONG(val);
    SV_Write(&val, sizeof(int));
}
Esempio n. 3
0
void SV_WriteWord(unsigned short val)
{
    val = SHORT(val);
    SV_Write(&val, sizeof(unsigned short));
}
Esempio n. 4
0
void SV_WriteByte(byte val)
{
    SV_Write(&val, sizeof(byte));
}