Implement no-window mode for X11 and MacOS

Bonus: Homogeinize and improve OS::alert() for no-window mode
This commit is contained in:
Pedro J. Estébanez 2020-09-23 13:43:51 +02:00
parent 1a14551f1f
commit 3ec62c82a3
6 changed files with 96 additions and 16 deletions

View file

@ -156,7 +156,7 @@ void OS_Unix::finalize_core() {
void OS_Unix::alert(const String &p_alert, const String &p_title) {
fprintf(stderr, "ERROR: %s\n", p_alert.utf8().get_data());
fprintf(stderr, "ALERT: %s: %s\n", p_title.utf8().get_data(), p_alert.utf8().get_data());
}
String OS_Unix::get_stdin_string(bool p_block) {