utopia-rise / godot-kotlin-jvm

Godot Kotlin JVM Module
MIT License
562 stars 38 forks source link

Show system alert dialog if system is misconfigured #575

Closed chippmann closed 3 months ago

chippmann commented 5 months ago

This shows system alert dialogs if the system or project is misconfigured (JAVA_HOME missing, no embedded jvm on exported projects).

NOTE: This only handles cases where we would otherwise quit the application directly or would not initialize our module. This also adds a hard exit of the editor where we otherwise just did not initialize our module. But currently our module misbehaves if there are gdj files present but our module is not properly initialized. Until this is fixed, we just exit the editor after displaying the error message.

This should help in detecting issues without the need of looking into the editor (or game) logs 2024-02-08-151450_1029x641_scrot

This now also creates a alert dialog upon fatal errors which will close the program and thus should resolve #562 : 2024-02-08-154400_895x426_scrot