From c0dff664ebf50beebd8000846e92cd99bd62bb7d Mon Sep 17 00:00:00 2001 From: Luke Hubmayer-Werner Date: Mon, 7 Aug 2023 01:15:55 +0930 Subject: [PATCH] fake error handling for connect() --- scripts/managers/Common.gd | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/managers/Common.gd b/scripts/managers/Common.gd index 020ad1d..f4ddc00 100644 --- a/scripts/managers/Common.gd +++ b/scripts/managers/Common.gd @@ -206,8 +206,16 @@ static func game_time_frames_to_hhmm(game_time_frames: int) -> String: return '%d:%02d' % [game_hours, game_minutes % 60] func _ready(): - shrink_timer.connect('timeout', self, 'shrink_to_integer') + match shrink_timer.connect('timeout', self, 'shrink_to_integer'): + OK: + pass + _: + assert(false) shrink_timer.one_shot = true add_child(shrink_timer) - get_tree().connect('screen_resized', self, 'update_window_scale') + match get_tree().connect('screen_resized', self, 'update_window_scale'): + OK: + pass + _: + assert(false) OS.set_min_window_size(base_resolution*2)