From d261fb46009437ec078b9b9e068febbeb55be773 Mon Sep 17 00:00:00 2001 From: "Lars A. Doucet" Date: Wed, 1 Oct 2014 16:07:46 -0500 Subject: [PATCH] Tools fix for flash target when compiling on windows --- tools/platforms/FlashPlatform.hx | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/tools/platforms/FlashPlatform.hx b/tools/platforms/FlashPlatform.hx index 143e3e8c3..51e899dc6 100644 --- a/tools/platforms/FlashPlatform.hx +++ b/tools/platforms/FlashPlatform.hx @@ -8,11 +8,13 @@ import helpers.CompatibilityHelper; import helpers.FileHelper; import helpers.FlashHelper; import helpers.PathHelper; +import helpers.PlatformHelper; import helpers.ProcessHelper; import project.AssetType; import project.Haxelib; import project.HXProject; import project.PlatformTarget; +import project.Platform; import sys.io.File; import sys.FileSystem; @@ -62,15 +64,19 @@ class FlashPlatform extends PlatformTarget { } - for (i in 0...args.length) { - - if (args[i].indexOf ("(") > -1) { - - args[i] = "'" + args[i] + "'"; - - } - - } + if (PlatformHelper.hostPlatform != Platform.WINDOWS) { + + for (i in 0...args.length) { + + if (args[i].indexOf ("(") > -1) { + + args[i] = "'" + args[i] + "'"; + + } + + } + + } ProcessHelper.runCommand ("", "haxe", args);