2
0
Эх сурвалжийг харах

AMFImporter: use correct unique token to identify schema for AMF-assets.

Kim Kulling 9 жил өмнө
parent
commit
f2817587ab
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      code/AMFImporter.cpp

+ 2 - 2
code/AMFImporter.cpp

@@ -671,9 +671,9 @@ const std::string extension = GetExtension(pFile);
 
 	if(!extension.length() || pCheckSig)
 	{
-		const char* tokens[] = { "<?xml", "<amf" };
+		const char* tokens[] = { "<amf" };
 
-		return SearchFileHeaderForToken(pIOHandler, pFile, tokens, 2);
+		return SearchFileHeaderForToken( pIOHandler, pFile, tokens, 1 );
 	}
 
 	return false;