diff --git a/examples/game/01-snake/snake.c b/examples/game/01-snake/snake.c index 7a9e87cf4b..669d8e1ab4 100644 --- a/examples/game/01-snake/snake.c +++ b/examples/game/01-snake/snake.c @@ -283,6 +283,10 @@ SDL_AppResult SDL_AppIterate(void *appstate) SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) { + if (!SDL_SetAppMetadata("Example Snake game", "1.0", "com.example.Snake")) { + return SDL_APP_FAILURE; + } + if (!SDL_Init(SDL_INIT_VIDEO)) { return SDL_APP_FAILURE; }