//========================================================================== // 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 } }
void SV_WriteLong(unsigned int val) { val = LONG(val); SV_Write(&val, sizeof(int)); }
void SV_WriteWord(unsigned short val) { val = SHORT(val); SV_Write(&val, sizeof(unsigned short)); }
void SV_WriteByte(byte val) { SV_Write(&val, sizeof(byte)); }