Add hxProject.includeXML

This commit is contained in:
Joshua Granick
2015-10-31 07:35:07 -07:00
parent 8bc81b78f0
commit 08059a6d82

View File

@@ -18,6 +18,7 @@ import sys.FileSystem;
import sys.io.File;
#if (lime && !lime_legacy)
import haxe.xml.Fast;
import lime.text.Font;
import lime.tools.helpers.FileHelper;
import lime.tools.helpers.ProcessHelper;
@@ -619,6 +620,19 @@ class HXProject {
}
#if (lime && !lime_legacy)
public function includeXML (xml:String):Void {
var projectXML = new ProjectXMLParser ();
@:privateAccess projectXML.parseXML (new Fast (Xml.parse (xml).firstElement ()), "");
merge (projectXML);
}
#end
private static function initialize ():Void {
if (!initialized) {