Skip to content

Commit

Permalink
maybe adding some ability to open the menu on load
Browse files Browse the repository at this point in the history
  • Loading branch information
AsherGlick committed Jun 15, 2024
1 parent 6f6062b commit d047df0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Settings.gd
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var burrito_link_auto_launch_enabled: bool = false
var burrito_link_wine_path: String = ""
var burrito_link_env_args: String = ""

var start_with_open_menu: bool = false

func _ready():
var file = File.new()
Expand Down Expand Up @@ -42,6 +43,8 @@ func _ready():
self.burrito_link_wine_path = self._config_data["burrito_link_wine_path"]
if "burrito_link_env_args" in self._config_data:
self.burrito_link_env_args = self._config_data["burrito_link_env_args"]
if "start_with_open_menu" in self._config_data:
self.start_with_open_menu = self._config_data["start_with_open_menu"]


func save():
Expand All @@ -54,6 +57,7 @@ func save():
"burrito_link_auto_launch_enabled": burrito_link_auto_launch_enabled,
"burrito_link_wine_path": burrito_link_wine_path,
"burrito_link_env_args": burrito_link_env_args,
"start_with_open_menu": start_with_open_menu
}

var file = File.new()
Expand Down
2 changes: 2 additions & 0 deletions Spatial.gd
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ func _ready():
if (Settings.burrito_link_auto_launch_enabled):
launch_burrito_link()

if (Settings.start_with_open_menu):
_on_main_menu_toggle_pressed()

################################################################################
# show_error
Expand Down

0 comments on commit d047df0

Please sign in to comment.