From 25e14db0ff7e024defb794ebe6d99b04b27ce99b Mon Sep 17 00:00:00 2001 From: Hion-V Date: Sun, 20 Feb 2022 19:45:14 +0100 Subject: [PATCH] haxe compatibility fix for haxe version 4.0.5 --- src/Main.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Main.hx b/src/Main.hx index 74a0d9a..af0ae8a 100644 --- a/src/Main.hx +++ b/src/Main.hx @@ -49,13 +49,13 @@ class Main{ files.push(arg); } } - + // Look at switch contents - if (_switches.contains("-v")) { + if (_switches.indexOf("-v") > -1) { Sys.println('version: ${haxe.macro.Compiler.getDefine("version")}'); return; } - if (_switches.contains("-t")) { + if (_switches.indexOf("-t") > -1) { SWITCHMODE_TURBO = true; }