C:\Documents and Settings\rcapote\Desktop\RedeemedArcade\source\RedeemedArcade.cpp(31) : error C2664: 'class irr::io::IIrrXMLReader<unsigned short,class irr::IUnknown> *__thiscall irr::io::IFileSystem::createXMLReader(const char *)' : cannot convert
parameter 1 from 'const unsigned short *' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Documents and Settings\rcapote\Desktop\RedeemedArcade\source\RedeemedArcade.cpp(39) : error C2677: binary '+' : no global operator defined which takes type 'class irr::core::string<unsigned short>' (or there is no acceptable conversion)
I am trying to open a zip file that has an XML file inside of it, same name. On the site it says it can open it automatically. How do I accomplish this:
For example when used with the Irrlicht Engine, it directly reads from compressed .zip files.
if (device.getFileSystem()->addZipFileArchive(MapPath.c_str()))
{
//chop of the extention .gz
MapPath = MapPath.subString(MapPath.findLast('/')+1,MapPath.size()- 3);
//IrrlichtDevice &device
io::IXMLReader* xml = device.getFileSystem()->createXMLReader(MapPath.c_str());
}
Or is there a better way to open and read a zipped xml file?