Use a regex to split the hxml file.

Allows skipping the "replace newlines with spaces" step, and ensures that there aren't any blank arguments.
This commit is contained in:
player-03
2014-10-19 01:31:14 -07:00
parent 64a7316e26
commit 4d3a2fd1cd

View File

@@ -67,10 +67,9 @@ class FlashPlatform extends PlatformTarget {
}
hxml = StringTools.replace (hxml, "\n", " ");
hxml = StringTools.trim (hxml);
var args = hxml.split (" ");
var args = new EReg ("\\s+", "g").split (hxml);
var strip;
while ((strip = args.indexOf ("-swf-header")) > -1) {