I am using HGE engine and I need to load .ptc effects files from .zip archive.
In the way of .xml files I do following:
- Код: Выделить всё
DWORD size;
char *tmpContents;
char *xmlContents;
tmpContents = (char *)hge->Resource_Load("my.xml", &size);
xmlContents = new char[size+1]; // +1 to allow for null-terminator
strncpy(xmlContents, tmpContents, size);
xmlContents[size] = '\0'; // null-terminate string
hge->Resource_Free(tmpContents);
//xml_document doc;
doc.load(xmlContents);
delete xmlContents;
Is it possible to load this GREAT magic particles in the same way?
Please write some code below, thank you!