mirror of https://github.com/axmolengine/axmol.git
commit
bad526e8de
|
@ -150,8 +150,7 @@ std::string FlatBuffersSerialize::serializeFlatBuffersWithXMLFile(const std::str
|
||||||
return ".csd file doesn not exists ";
|
return ".csd file doesn not exists ";
|
||||||
}
|
}
|
||||||
|
|
||||||
ssize_t size;
|
std::string content = FileUtils::getInstance()->getStringFromFile(inFullpath);
|
||||||
std::string content =(char*)FileUtils::getInstance()->getFileData(inFullpath, "r", &size);
|
|
||||||
|
|
||||||
// xml parse
|
// xml parse
|
||||||
tinyxml2::XMLDocument* document = new tinyxml2::XMLDocument();
|
tinyxml2::XMLDocument* document = new tinyxml2::XMLDocument();
|
||||||
|
@ -1124,8 +1123,7 @@ FlatBufferBuilder* FlatBuffersSerialize::createFlatBuffersWithXMLFileForSimulato
|
||||||
// CCLOG(".csd file doesn not exists ");
|
// CCLOG(".csd file doesn not exists ");
|
||||||
}
|
}
|
||||||
|
|
||||||
ssize_t size;
|
std::string content = FileUtils::getInstance()->getStringFromFile(inFullpath);
|
||||||
std::string content =(char*)FileUtils::getInstance()->getFileData(inFullpath, "r", &size);
|
|
||||||
|
|
||||||
// xml parse
|
// xml parse
|
||||||
tinyxml2::XMLDocument* document = new tinyxml2::XMLDocument();
|
tinyxml2::XMLDocument* document = new tinyxml2::XMLDocument();
|
||||||
|
|
Loading…
Reference in New Issue