diff options
Diffstat (limited to 'apworld/client/source_runtime.gd')
| -rw-r--r-- | apworld/client/source_runtime.gd | 4 |
1 files changed, 4 insertions, 0 deletions
| diff --git a/apworld/client/source_runtime.gd b/apworld/client/source_runtime.gd index 35428ea..146587a 100644 --- a/apworld/client/source_runtime.gd +++ b/apworld/client/source_runtime.gd | |||
| @@ -7,6 +7,10 @@ func _init(path): | |||
| 7 | source_path = path | 7 | source_path = path |
| 8 | 8 | ||
| 9 | 9 | ||
| 10 | func path_exists(path): | ||
| 11 | return FileAccess.file_exists("%s/%s" % [source_path, path]) | ||
| 12 | |||
| 13 | |||
| 10 | func load_script(path): | 14 | func load_script(path): |
| 11 | return ResourceLoader.load("%s/%s" % [source_path, path]) | 15 | return ResourceLoader.load("%s/%s" % [source_path, path]) |
| 12 | 16 | ||
