Add error message for failed zwidget init
This commit is contained in:
parent
dadfade127
commit
6fbffd8717
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue