Skip to content

Commit

Permalink
Show the map browser after selecting the exe
Browse files Browse the repository at this point in the history
  • Loading branch information
rainlizard committed Mar 25, 2024
1 parent 6d01e27 commit fb8e9e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Scenes/ChooseDkExe.gd
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ onready var oTextureCache = Nodelist.list["oTextureCache"]
onready var oGame = Nodelist.list["oGame"]
onready var oMessage = Nodelist.list["oMessage"]
onready var oKeeperFXDetection = Nodelist.list["oKeeperFXDetection"]
onready var oMapBrowser = Nodelist.list["oMapBrowser"]

func _on_ChooseDkExe_file_selected(path):
Settings.set_setting("executable_path", path) # Do this first so running_keeperfx() works
Expand All @@ -12,3 +13,5 @@ func _on_ChooseDkExe_file_selected(path):
var err = oGame.test_write_permissions()
if err == OK:
oTextureCache.start() # Run this again, important for first-time users, because the path has now been set.

oMapBrowser.popup()

0 comments on commit fb8e9e5

Please sign in to comment.