Files
mtgodot-poc/project/playable_config_gate.gd
T

15 lines
359 B
GDScript

extends SceneTree
const Config = preload("res://testing/playable_config.gd")
func _init() -> void:
var path := OS.get_environment("MT_PLAYABLE_VALIDATE_CONFIG")
var result := Config.load_file(path)
if not result.ok:
for error in result.errors:
printerr("CONFIG: " + String(error))
quit(2)
return
print("PLAYABLE CONFIG: PASS " + path)
quit(0)