Fix DirAccess usage

This commit is contained in:
Leroy Hopson 2023-01-26 07:04:49 +13:00
parent 7ac180d431
commit ca7f161c87
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

View file

@ -273,7 +273,8 @@ func get_config_issues():
var path = _cfg_ctrls[key].text var path = _cfg_ctrls[key].text
if path != null and path != "": if path != null and path != "":
has_directory = true has_directory = true
if !DirAccess.dir_exists(path): var dir = DirAccess.open(".")
if !dir.dir_exists(path):
to_return.append(str("Test directory ", path, " does not exist.")) to_return.append(str("Test directory ", path, " does not exist."))
if !has_directory: if !has_directory: