Implement diagnostic output opcodes

This commit is contained in:
gamer147
2026-07-29 11:54:09 -04:00
parent bab3c051d2
commit cbd1521872
16 changed files with 367 additions and 37 deletions

View File

@@ -912,6 +912,22 @@ public partial class Main : Godot.Control
_ageCursorTexture = null;
}
public void ShowAgeDiagnostic(string text, string caption)
{
try
{
OS.Alert(text, caption);
}
catch (System.Exception error)
{
GD.PushError($"[diagnostic] native alert failed: {error.Message}");
}
finally
{
_host?.CompleteDiagnosticMessage();
}
}
public override void _ExitTree()
{
bool vmStopped = true;