mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Fix running desktop export.
This commit is contained in:
parent
04da48826e
commit
1b16cbf376
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user