21 lines
626 B
GDScript
21 lines
626 B
GDScript
@tool
|
|
extends Node
|
|
|
|
## Compatibility path for cached capsule dependencies after a signed update.
|
|
## The canonical plugin has no remaining capsule installation to coordinate.
|
|
const STATUS_SETTING := "godot_ai/v4_migration_bridge_status"
|
|
|
|
|
|
func start(_package: Dictionary) -> void:
|
|
queue_free()
|
|
|
|
|
|
static func record_status(error: String) -> void:
|
|
var settings := EditorInterface.get_editor_settings()
|
|
if settings != null:
|
|
settings.set_setting(status_setting(), JSON.stringify({"error": error}))
|
|
|
|
|
|
static func status_setting() -> String:
|
|
return STATUS_SETTING + "_" + ProjectSettings.globalize_path("res://").sha256_text()
|