All pastes #569441 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-16 06:03 UTC
rendered paste body
//--------------------------------------
//--- 010 Editor v2.1.3 Binary Template
//
// File: RSCTemplate.bt
// Author: Slurm
// Revision: 1.0
// Purpose: Parse BYOND resource archives.
//--------------------------------------
typedef struct
{
	unsigned int blockSize;
	unsigned char version;
	unsigned char junk[13];
	unsigned int dataSize;
	char name[blockSize - 13 - 4 - dataSize];
	unsigned char fileData[dataSize];
}
FileEntry <read = readFileEntry>;;


string readFileEntry(FileEntry &a)
{
	return a.name;
}

while (!FEof())
{
	FileEntry file;
}