From f085633b57012dc271c4dce16a36503f9eafa861 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Wed, 23 Oct 2024 18:56:50 -0400
Subject: [PATCH] Add an SDL_SetAppMetadata call at startup.
---
main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/main.c b/main.c
index 787d9b8..a04d349 100644
--- a/main.c
+++ b/main.c
@@ -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;