diff --git a/source/CoolUtil.hx b/source/CoolUtil.hx index f0011c822a5..3b632c6973e 100644 --- a/source/CoolUtil.hx +++ b/source/CoolUtil.hx @@ -99,6 +99,7 @@ class CoolUtil } public static function updateTheEngine():Void { + #if windows // Get the directory of the executable var exePath = Sys.programPath(); var exeDir = haxe.io.Path.directory(exePath); @@ -139,6 +140,7 @@ class CoolUtil // Execute the batch file new Process(exeDir + "/update.bat", []); Sys.exit(0); + #end } public static function checkForOBS():Bool