| 278 | |
| 279 | |
| 280 | void parseAssetList(AssetList& assetList, std::string filepath) |
| 281 | { |
| 282 | physx::PsFileBuffer fileBuffer(filepath.c_str(), physx::general_PxIOStream2::PxFileBuf::OPEN_READ_ONLY); |
| 283 | if (!fileBuffer.isOpen()) |
| 284 | { |
| 285 | return; |
| 286 | } |
| 287 | PxInputDataFromPxFileBuf inputData(fileBuffer); |
| 288 | AssetListParser parser(assetList); |
| 289 | physx::shdfnd::FastXml* xml = physx::shdfnd::createFastXml(&parser); |
| 290 | xml->processXml(inputData, false); |
| 291 | xml->release(); |
| 292 | } |