Add error message for failed zwidget init

This commit is contained in:
Marcus Minhorst 2025-09-20 19:47:32 -04:00 committed by Rachael Alexanderson
commit 6fbffd8717

View file

@ -3905,7 +3905,10 @@ int GameMain()
if (!zwidget)
zwidget = DisplayBackend::TryCreateSDL2();
if (!zwidget)
{
fprintf(stderr, "Unable to create init zwidget\n");
return -1;
}
DisplayBackend::Set(std::move(zwidget));
int ret = 0;