Skip to content

Commit

Permalink
Fix extensions_folder typo (#1618)
Browse files Browse the repository at this point in the history
The property is supposed to be `dialogic/extensions_folder`, plural and
without the trailing `/`. This broke custom extensions folders.
  • Loading branch information
oddfacade authored Jun 25, 2023
1 parent 317b13d commit 8a537f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/dialogic/Other/DialogicUtil.gd
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ static func get_indexers(include_custom := true, force_reload := false) -> Array
var possible_script:String = DialogicUtil.get_module_path(file).path_join("index.gd")
if FileAccess.file_exists(possible_script):
indexers.append(load(possible_script).new())

if include_custom:
var extensions_folder :String= ProjectSettings.get_setting('dialogic/extension_folder/', "res://addons/dialogic_additions/")
var extensions_folder: String = ProjectSettings.get_setting('dialogic/extensions_folder', "res://addons/dialogic_additions/")
for file in listdir(extensions_folder, false, false):
var possible_script: String = extensions_folder.path_join(file + "/index.gd")
if FileAccess.file_exists(possible_script):
Expand Down

0 comments on commit 8a537f3

Please sign in to comment.