We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 742fd28 commit 8355cacCopy full SHA for 8355cac
addons/dialogic/Core/DialogicResourceUtil.gd
@@ -55,8 +55,12 @@ static func update_directory(extension:String) -> void:
55
56
static func add_resource_to_directory(file_path:String, directory:Dictionary) -> Dictionary:
57
var suggested_name := file_path.get_file().trim_suffix("."+file_path.get_extension())
58
+ var temp := suggested_name
59
while suggested_name in directory:
60
suggested_name = file_path.trim_suffix("/"+suggested_name+"."+file_path.get_extension()).get_file().path_join(suggested_name)
61
+ if suggested_name == temp:
62
+ break
63
+ temp = suggested_name
64
directory[suggested_name] = file_path
65
return directory
66
0 commit comments