diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-11-04 14:56:04 -0500 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-11-04 14:56:04 -0500 |
| commit | 452289b3b6247bb512b9353e0f2c6a9b7090be55 (patch) | |
| tree | 499bb3c365cb91cb161b8b0e9bf51c6d5c0d72f8 /apworld/client/source_runtime.gd | |
| parent | 24a59794f408c6aa878a8477a920a1d7b7d9c4c5 (diff) | |
| download | lingo2-archipelago-452289b3b6247bb512b9353e0f2c6a9b7090be55.tar.gz lingo2-archipelago-452289b3b6247bb512b9353e0f2c6a9b7090be55.tar.bz2 lingo2-archipelago-452289b3b6247bb512b9353e0f2c6a9b7090be55.zip | |
Split map-specific initialization into separate files
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 | ||
