Skip to content

Commit

Permalink
fix new BN realeases not launching on Windows (#165)
Browse files Browse the repository at this point in the history
* fix new BN realeases not launching on Windows

* fix file name
  • Loading branch information
AriaMoradi authored Jul 16, 2024
1 parent 26e3611 commit c9b8d4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/Catapult.gd
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,12 @@ func _start_game(world := "") -> void:
var world_str := ""
if world != "":
world_str = "--world \"%s\"" % world
var command = "cd /d %s && start cataclysm-tiles.exe --userdir \"%s/\" %s" % [Paths.game_dir, Paths.userdata, world_str]

var exe_file = "cataclysm-tiles.exe"
if Settings.read("game") == "bn" and Directory.new().file_exists(Paths.game_dir.plus_file("cataclysm-bn-tiles.exe")):
exe_file = "cataclysm-bn-tiles.exe"

var command = "cd /d %s && start %s --userdir \"%s/\" %s" % [Paths.game_dir, exe_file, Paths.userdata, world_str]
OS.execute("cmd", ["/C", command], false)
_:
return
Expand Down

0 comments on commit c9b8d4a

Please sign in to comment.