diff --git a/lime/tools/platforms/WindowsPlatform.hx b/lime/tools/platforms/WindowsPlatform.hx index 68f418c95..a7ecce7dc 100644 --- a/lime/tools/platforms/WindowsPlatform.hx +++ b/lime/tools/platforms/WindowsPlatform.hx @@ -19,6 +19,7 @@ import lime.project.Asset; import lime.project.AssetType; import lime.project.Haxelib; import lime.project.HXProject; +import lime.project.Platform; import lime.project.PlatformTarget; import sys.io.File; import sys.FileSystem; @@ -159,7 +160,7 @@ class WindowsPlatform extends PlatformTarget { var iconPath = PathHelper.combine (applicationDirectory, "icon.ico"); - if (IconHelper.createWindowsIcon (icons, iconPath) && PlatformHelper.hostPlatform == WINDOWS) { + if (IconHelper.createWindowsIcon (icons, iconPath) && PlatformHelper.hostPlatform == Platform.WINDOWS) { var templates = [ PathHelper.getHaxelib (new Haxelib ("lime")) + "/templates" ].concat (project.templatePaths); ProcessHelper.runCommand ("", PathHelper.findTemplate (templates, "bin/ReplaceVistaIcon.exe"), [ executablePath, iconPath, "1" ], true, true); @@ -347,4 +348,4 @@ class WindowsPlatform extends PlatformTarget { @ignore public override function uninstall ():Void {} -} \ No newline at end of file +}