Fix some errors preventing running of the main scene

This commit is contained in:
Leroy Hopson 2023-01-14 22:36:25 +13:00
parent 8d56b5659a
commit c115c34e6c
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
2 changed files with 4 additions and 3 deletions

View file

@ -44,10 +44,10 @@ enum CWDType {
@export var bell_sound: AudioStream
# Exec args.
@export var file_type: FileType := FileType.USE_SHELL_ENV
@export var file_type := FileType.USE_SHELL_ENV
@export var custom_file := "/bin/sh"
@export var cwd_type: CWDType := CWDType.USE_PROJECT_DIRECTORY
@export var cwd_type := CWDType.USE_PROJECT_DIRECTORY
@export var custom_cwd := ""
@export var args := PackedStringArray()

View file

@ -146,7 +146,7 @@ func _on_Terminal_key_pressed(data: String, event: InputEventKey) -> void:
scene.queue_free()
"Terminal":
if OS.get_name() == "Windows":
return OS.call_deferred(
OS.call_deferred(
"alert",
(
"Psuedoterminal node currently"
@ -155,6 +155,7 @@ func _on_Terminal_key_pressed(data: String, event: InputEventKey) -> void:
),
"Terminal not Supported on Windows"
)
return
var scene = item.scene.instantiate()
var pty = scene if OS.has_feature("JavaScript") else scene.get_node("PTY")
add_child(scene)