diff --git a/tools/platforms/AIRPlatform.hx b/tools/platforms/AIRPlatform.hx index 93d14d0526..1cc7e71552 100644 --- a/tools/platforms/AIRPlatform.hx +++ b/tools/platforms/AIRPlatform.hx @@ -120,7 +120,7 @@ class AIRPlatform extends FlashPlatform } else { - targetPlatform = cast System.hostPlatform; + targetPlatform = System.hostPlatform; targetPlatformType = DESKTOP; } } diff --git a/tools/platforms/LinuxPlatform.hx b/tools/platforms/LinuxPlatform.hx index 4ee5a91619..e3ef203950 100644 --- a/tools/platforms/LinuxPlatform.hx +++ b/tools/platforms/LinuxPlatform.hx @@ -138,7 +138,7 @@ class LinuxPlatform extends PlatformTarget is64 = targetFlags.exists("64"); } - if (project.targetFlags.exists("neko") || project.target != cast System.hostPlatform) + if (project.targetFlags.exists("neko") || project.target != System.hostPlatform) { targetType = "neko"; } @@ -472,7 +472,7 @@ class LinuxPlatform extends PlatformTarget { System.runCommand(applicationDirectory, "java", ["-jar", project.app.file + ".jar"].concat(arguments)); } - else if (project.target == cast System.hostPlatform) + else if (project.target == System.hostPlatform) { arguments = arguments.concat(["-livereload"]); System.runCommand(applicationDirectory, "./" + Path.withoutDirectory(executablePath), arguments); diff --git a/tools/platforms/MacPlatform.hx b/tools/platforms/MacPlatform.hx index 2545bdc434..594c675d40 100644 --- a/tools/platforms/MacPlatform.hx +++ b/tools/platforms/MacPlatform.hx @@ -130,7 +130,7 @@ class MacPlatform extends PlatformTarget } } - if (project.targetFlags.exists("neko") || project.target != cast System.hostPlatform) + if (project.targetFlags.exists("neko") || project.target != System.hostPlatform) { targetType = "neko"; } @@ -420,7 +420,7 @@ class MacPlatform extends PlatformTarget { System.runCommand(executableDirectory, "java", ["-jar", project.app.file + ".jar"].concat(arguments)); } - else if (project.target == cast System.hostPlatform) + else if (project.target == System.hostPlatform) { arguments = arguments.concat(["-livereload"]); System.runCommand(executableDirectory, "./" + Path.withoutDirectory(executablePath), arguments); diff --git a/tools/platforms/WindowsPlatform.hx b/tools/platforms/WindowsPlatform.hx index fe5ab2e500..e9e8ddcfd4 100644 --- a/tools/platforms/WindowsPlatform.hx +++ b/tools/platforms/WindowsPlatform.hx @@ -813,7 +813,7 @@ class WindowsPlatform extends PlatformTarget { winrtRun(arguments); } - else if (project.target == cast System.hostPlatform) + else if (project.target == System.hostPlatform) { arguments = arguments.concat(["-livereload"]); System.runCommand(applicationDirectory, Path.withoutDirectory(executablePath), arguments);