Return Controller onEntry error in main.

This commit is contained in:
Justin Scofield
2022-08-04 19:04:09 +00:00
parent c1ac8cd71c
commit 3b0dc9c195

View File

@@ -11,7 +11,13 @@ int main(int argc, char** argv) {
absl::InstallFailureSignalHandler(options);
yaze::app::core::Controller controller;
controller.onEntry();
auto entry_status = controller.onEntry();
if (!entry_status.ok()) {
// TODO(@scawful): log the specific error
return EXIT_FAILURE;
}
while (controller.isActive()) {
controller.onInput();
controller.onLoad();