wasm test

This commit is contained in:
MaidOpi
2026-05-11 13:21:51 +08:00
parent 0428927f5f
commit fb9966e61a
10 changed files with 201 additions and 56 deletions
+8
View File
@@ -21,6 +21,11 @@ func _ready() -> void:
run_button.pressed.connect(compile_and_reload)
show()
if OS.has_feature("web"):
run_button.disabled = true
_set_status("Web export is read-only; runtime build is desktop only.")
return
if OS.has_environment(AUTORUN_ENVIRONMENT) and not autorun_started:
autorun_started = true
var code := editor.text
@@ -69,6 +74,9 @@ func compile_and_reload() -> void:
if editor == null:
_set_status("Editor is not ready.")
return
if OS.has_feature("web"):
_set_status("Web export is read-only; runtime build is desktop only.")
return
if not _write_text_file(EDIT_SOURCE_PATH, editor.text):
_set_status("Failed to write HotReloadSmoke.cs")