check if sandbox is running on bootup

This commit is contained in:
Nordup 2025-03-19 02:14:59 +04:00
parent d1aa1e6536
commit e31fa51046
4 changed files with 32 additions and 9 deletions

View file

@ -16,7 +16,6 @@ var log_file: FileAccess
var pipe: Dictionary
var gate: Gate
var last_log_tick: int
var print_logs: bool
var logs_sent: bool
@ -32,7 +31,6 @@ func _ready() -> void:
func start(_pipe: Dictionary, _gate: Gate) -> void:
pipe = _pipe
gate = _gate
last_log_tick = Time.get_ticks_msec()
create_log_file()
start_reading_pipes()
@ -83,7 +81,6 @@ func read_stderr() -> void:
func store_buffer(buffer: PackedByteArray) -> void:
if print_logs: printraw(buffer.get_string_from_utf8())
log_file.store_buffer(buffer)
last_log_tick = Time.get_ticks_msec()
func cleanup() -> void: