From 9a1a9d89cdbf6d04d993513a32d5ca34aab1fcae Mon Sep 17 00:00:00 2001 From: Lily Date: Sat, 21 Sep 2024 10:10:29 +0300 Subject: [PATCH] Update CoolUtil.hx --- source/CoolUtil.hx | 2 ++ 1 file changed, 2 insertions(+) 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