Archived
1
0
Fork 0
This repository has been archived on 2026-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
Danmaku/client/test_suite/runner.gd

15 lines
502 B
GDScript

extends SceneTree
func _init():
var me = ProjectSettings.localize_path(ProjectSettings.globalize_path(get_script().resource_path))
var dir = ProjectSettings.localize_path(me.get_base_dir())
if dir != "res://":
print("Must be run with the script dir as the res:// path")
print("Current path: ", ProjectSettings.globalize_path(dir))
print("RES:// path: ", ProjectSettings.globalize_path("res://"))
quit()
return
var n = load("res://tester.gd").new()
root.add_child(n)
current_scene = n