about summary refs log tree commit diff stats
path: root/apworld/client/source_runtime.gd
diff options
context:
space:
mode:
Diffstat (limited to 'apworld/client/source_runtime.gd')
-rw-r--r--apworld/client/source_runtime.gd15
1 files changed, 15 insertions, 0 deletions
diff --git a/apworld/client/source_runtime.gd b/apworld/client/source_runtime.gd new file mode 100644 index 0000000..fbb7009 --- /dev/null +++ b/apworld/client/source_runtime.gd
@@ -0,0 +1,15 @@
1extends Node
2
3var source_path
4
5
6func _init(path):
7 source_path = path
8
9
10func load_path(path):
11 return ResourceLoader.load("%s/%s" % [source_path, path])
12
13
14func read_path(path):
15 return FileAccess.get_file_as_bytes("%s/%s" % [source_path, path])