Skip to content

Commit c9b8d4a

Browse files
authored
fix new BN realeases not launching on Windows (#165)
* fix new BN realeases not launching on Windows * fix file name
1 parent 26e3611 commit c9b8d4a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/Catapult.gd

+6-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,12 @@ func _start_game(world := "") -> void:
438438
var world_str := ""
439439
if world != "":
440440
world_str = "--world \"%s\"" % world
441-
var command = "cd /d %s && start cataclysm-tiles.exe --userdir \"%s/\" %s" % [Paths.game_dir, Paths.userdata, world_str]
441+
442+
var exe_file = "cataclysm-tiles.exe"
443+
if Settings.read("game") == "bn" and Directory.new().file_exists(Paths.game_dir.plus_file("cataclysm-bn-tiles.exe")):
444+
exe_file = "cataclysm-bn-tiles.exe"
445+
446+
var command = "cd /d %s && start %s --userdir \"%s/\" %s" % [Paths.game_dir, exe_file, Paths.userdata, world_str]
442447
OS.execute("cmd", ["/C", command], false)
443448
_:
444449
return

0 commit comments

Comments
 (0)