Skip to content

Commit

Permalink
Return proper error code if app fails to start
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Dec 6, 2023
1 parent cf51128 commit 964836e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/desktop-shared/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static int sdl_init(void)
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER | SDL_INIT_GAMECONTROLLER) != 0)
{
Log("Error: %s\n", SDL_GetError());
return -1;
return 1;
}

SDL_VERSION(&application_sdl_build_version);
Expand Down

0 comments on commit 964836e

Please sign in to comment.