Ejemplo n.º 1
0
BFile* BContainer::AddFile(char* comboTxt,unsigned char offset, UINT id, bool isFolder)
{

	BFile* bFile;

	bFile = new BFile();
	if(bFile == NULL) return NULL;
	if(id == 0)
	{
		id = ++this->lastId;
	}
	if(!bFile->Create(comboTxt,offset,this,id,isFolder)){delete bFile; return NULL;}

		
	if(!AddElement(bFile)){delete bFile; return NULL;}

	bFile->elementType =  GML::Utils::AttributeList::STRING;



	return bFile;
}