Fix running desktop export.

This commit is contained in:
Relintai 2020-04-26 00:29:43 +02:00
parent 04da48826e
commit 1b16cbf376

View File

@ -74,10 +74,18 @@ func load_modules_at(path : String) -> void:
continue
if dir.current_is_dir():
if path == "res://":
load_modules_at(path + file_name)
else:
load_modules_at(path + "/" + file_name)
else:
if file_name == "game_module.tres":
var res : Resource = ResourceLoader.load(path + "/" + file_name)
var res : Resource = null
if path == "res://":
res = ResourceLoader.load(path + file_name)
else:
res = ResourceLoader.load(path + "/" + file_name)
_modules.append(res)