Added an error indicator and error message box and refactored some code in the process - implements #21, prepares #16

This commit is contained in:
ChaoticByte 2024-12-26 22:18:18 +01:00
parent ca40971e53
commit 8394ad9d3c
No known key found for this signature in database
12 changed files with 345 additions and 31 deletions

View file

@ -11,8 +11,7 @@ func _ready():
func parse_load_directive(shader: Shader) -> PackedStringArray:
var regex_match = self._load_regex.search(Filesystem.shader.code)
if regex_match == null: # Error!
printerr("Didn't find any load directives!")
if regex_match == null:
return []
return regex_match.strings