Skip to content

Commit

Permalink
fix: create configs/ dir when not present (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotcubit authored Nov 20, 2024
1 parent 3d97eab commit 5ed0377
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions project/mods/TackleBox/main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ func _get_gdweave_dir() -> String:


func _init_mod_manifests() -> void:
if not _dir.dir_exists(mods_directory):
_dir.make_dir(mods_directory)

if _dir.open(mods_directory) != OK:
push_error("TackleBox could not open mods directory")
return
Expand Down Expand Up @@ -151,6 +154,9 @@ func _init_mod_manifests() -> void:


func _init_mod_configs() -> void:
if not _dir.dir_exists(configs_directory):
_dir.make_dir(configs_directory)

if _dir.open(configs_directory) != OK:
push_warning("TackleBox could not open configs directory")
return
Expand Down

0 comments on commit 5ed0377

Please sign in to comment.