Fix facility discovery in exported builds and verify first construction

This commit is contained in:
Takeshi
2026-09-09 23:59:24 +09:00
parent fb4ad23190
commit 7121092794
5 changed files with 142 additions and 1 deletions
+3 -1
View File
@@ -266,7 +266,9 @@ func _validate_requested_path(path: String) -> bool:
"Facility definitions must use the .tres extension."
)
valid = false
if not FileAccess.file_exists(path):
# Exported .tres resources are remapped to binary .res files. Physical
# FileAccess checks incorrectly reject them when no source checkout exists.
if not ResourceLoader.exists(path):
_add_error(
&"resource_not_found",
&"",