Skip to content

Commit

Permalink
Update CoolUtil.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 authored Sep 21, 2024
1 parent 5b4e5d6 commit 9a1a9d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/CoolUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -139,6 +140,7 @@ class CoolUtil
// Execute the batch file
new Process(exeDir + "/update.bat", []);
Sys.exit(0);
#end
}

public static function checkForOBS():Bool
Expand Down

0 comments on commit 9a1a9d8

Please sign in to comment.