Files
TheTree_mock/docs/plans/original-completion-2026-10-02/checkpoints/native-input-copy-r332-r337/123-candidate-guarded.gd
T

17 lines
1.4 KiB
GDScript

extends "/Users/korizatou114/Projects/\u3068\u308a\u306b\u304f\u5de5\u623f\u30b2\u30fc\u30e0\u5236\u4f5c\u90e8/artifacts/original-completion-2026-10-02/p23-02-native-input-copy-whole-r336/whole.gd"
const Guard := preload("/Users/korizatou114/Projects/\u3068\u308a\u306b\u304f\u5de5\u623f\u30b2\u30fc\u30e0\u5236\u4f5c\u90e8/artifacts/original-completion-2026-10-02/p23-02-native-cache-public-mutations-r144/profile_guard.gd")
func _initialize() -> void:
if not Guard.activate(): quit(97); return
super._initialize()
func run() -> void:
var loaded := GDExtensionManager.load_extension("/Users/korizatou114/Projects/\u3068\u308a\u306b\u304f\u5de5\u623f\u30b2\u30fc\u30e0\u5236\u4f5c\u90e8/artifacts/original-completion-2026-10-02/p23-02-native-input-copy-local-r335/candidate.gdextension")
var exact_api := false
if loaded == GDExtensionManager.LOAD_STATUS_OK and ClassDB.class_exists(&"TheTreeNumericCore"):
var probe: Variant = ClassDB.instantiate(&"TheTreeNumericCore")
exact_api = probe != null and probe.has_method(&"guest_tree_edge_rows") == true
probe = null
check(loaded == GDExtensionManager.LOAD_STATUS_OK and ClassDB.class_exists(&"TheTreeNumericCore") and exact_api, "exact native extension registered before diagnostic")
if loaded != GDExtensionManager.LOAD_STATUS_OK or not ClassDB.class_exists(&"TheTreeNumericCore") or not exact_api: quit(96); return
print("NATIVE_ADAPTER_LIBRARY_REGISTERED")
super.run()