From 5a957f54f9744d92963435488917e691a093a1f3 Mon Sep 17 00:00:00 2001 From: patrick gutlich Date: Tue, 26 Nov 2019 21:34:48 +0100 Subject: [PATCH] ADDS compatibility with Animate v20 --- OpenFLPlugin/index.html | 2 +- project/Build.xml | 4 ++-- project/src/DocType.cpp | 34 +++++++++++++++++----------------- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/OpenFLPlugin/index.html b/OpenFLPlugin/index.html index 786c63d..21708d4 100755 --- a/OpenFLPlugin/index.html +++ b/OpenFLPlugin/index.html @@ -272,7 +272,7 @@ { for(var i=0;i - + @@ -58,7 +58,7 @@ - + diff --git a/project/src/DocType.cpp b/project/src/DocType.cpp index 9278b6a..7b0d98b 100755 --- a/project/src/DocType.cpp +++ b/project/src/DocType.cpp @@ -1,7 +1,7 @@ #include "DocType.h" #include "Utils.h" -#include "MyXmlParser.h" -#include "xercesc/framework/MemBufInputSource.hpp" +// #include "MyXmlParser.h" +// #include "xercesc/framework/MemBufInputSource.hpp" #include #include #include @@ -118,22 +118,22 @@ namespace OpenFL } xmlFile.close(); - try { - XMLPlatformUtils::Initialize(); - FeatureDocumentHandler featureXmlDocHandler(this); - SAXParser *parser = new SAXParser(); - parser->setDocumentHandler(&featureXmlDocHandler); + // try { + // XMLPlatformUtils::Initialize(); + // FeatureDocumentHandler featureXmlDocHandler(this); + // SAXParser *parser = new SAXParser(); + // parser->setDocumentHandler(&featureXmlDocHandler); - XERCES_CPP_NAMESPACE::MemBufInputSource *memInput = new XERCES_CPP_NAMESPACE::MemBufInputSource((const XMLByte*) buffer, length, "dummy", false); - m_bInited = true; - parser->parse(*memInput); - delete parser; - delete memInput; - XMLPlatformUtils::Terminate(); - } - catch (...) { - ASSERT(0); - } + // XERCES_CPP_NAMESPACE::MemBufInputSource *memInput = new XERCES_CPP_NAMESPACE::MemBufInputSource((const XMLByte*) buffer, length, "dummy", false); + // m_bInited = true; + // parser->parse(*memInput); + // delete parser; + // delete memInput; + // XMLPlatformUtils::Terminate(); + // } + // catch (...) { + // ASSERT(0); + // } delete[] buffer; }