Allow script loading when compiled with PTY_DISABLED

This commit is contained in:
Leroy Hopson 2024-01-06 22:37:47 +13:00
parent 893c768f75
commit 52a89827c9
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
2 changed files with 21 additions and 10 deletions

View file

@ -6,7 +6,10 @@
@tool
extends Node
var _LibuvUtils := LibuvUtils
var _LibuvUtils = (
ClassDB.instantiate("LibuvUtils").get_class() if ClassDB.class_exists("LibuvUtils") else null
)
const _PTYNative := preload("./nodes/pty/pty_native.gd")
const _PTYUnix := preload("./nodes/pty/unix/pty_unix.gd")