浏览代码

Update AMFImporter.cpp

Kim Kulling 4 年之前
父节点
当前提交
88d64388f8
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      code/AssetLib/AMF/AMFImporter.cpp

+ 3 - 1
code/AssetLib/AMF/AMFImporter.cpp

@@ -504,7 +504,9 @@ void AMFImporter::ParseNode_Metadata(XmlNode &node) {
 
 
 bool AMFImporter::CanRead(const std::string &pFile, IOSystem *pIOHandler, bool /*pCheckSig*/) const {
 bool AMFImporter::CanRead(const std::string &pFile, IOSystem *pIOHandler, bool /*pCheckSig*/) const {
     static const char *tokens[] = { "<amf" };
     static const char *tokens[] = { "<amf" };
-    return SearchFileHeaderForToken(pIOHandler, pFile, tokens, std::size(tokens));
+    // hack to test the build
+    // todo: replace by a working std::size for linux
+    return SearchFileHeaderForToken(pIOHandler, pFile, tokens, 1);
 }
 }
 
 
 const aiImporterDesc *AMFImporter::GetInfo() const {
 const aiImporterDesc *AMFImporter::GetInfo() const {