Browse Source

init: Also log the SDL revision here

This includes the version number, unless the developer is doing
something strange with git tags.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie 6 months ago
parent
commit
fb8244d6d9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/SDL.c

+ 1 - 0
src/SDL.c

@@ -270,6 +270,7 @@ void SDL_InitMainThread(void)
         SDL_LogInfo(SDL_LOG_CATEGORY_SYSTEM, "App version: %s", value ? value : "<unspecified>");
         value = SDL_GetAppMetadataProperty(SDL_PROP_APP_METADATA_IDENTIFIER_STRING);
         SDL_LogInfo(SDL_LOG_CATEGORY_SYSTEM, "App ID: %s", value ? value : "<unspecified>");
+        SDL_LogInfo(SDL_LOG_CATEGORY_SYSTEM, "SDL revision: %s", SDL_REVISION);
 
         done_info = true;
     }