Closed Daivuk closed 2 years ago
For example, when loading a scene in the editor, I want to log an error if file is not found, but also should be nice to show the user a dialog:
if (!Engine::Utils::loadJson(json, filename)) { CORE_ERROR("Failed to load file: %s", filename.c_str()); tinyfd_messageBox("Error", ("Failed to load file: " + filename).c_str(), "ok", "error", 0); return; }```
For example, when loading a scene in the editor, I want to log an error if file is not found, but also should be nice to show the user a dialog: