Skip to content

Commit

Permalink
Add an SDL_SetAppMetadata call at startup.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 23, 2024
1 parent ed43802 commit f085633
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event)

SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
{
SDL_SetAppMetadata("SDL Hello World Example", "1.0", "com.example.sdl-hello-world");

if (SDL_Init(SDL_INIT_VIDEO) == -1) {
SDL_Log("SDL_Init(SDL_INIT_VIDEO) failed: %s", SDL_GetError());
return SDL_APP_FAILURE;
Expand Down

0 comments on commit f085633

Please sign in to comment.