Skip to content

Commit

Permalink
init: Also log the SDL revision here
Browse files Browse the repository at this point in the history
This includes the version number, unless the developer is doing
something strange with git tags.

Signed-off-by: Simon McVittie <[email protected]>
  • Loading branch information
smcv committed Oct 7, 2024
1 parent a56cdb3 commit 8408a18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SDL.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ void SDL_InitMainThread(void)
if (!done_info) {
const char *value;

SDL_LogInfo(SDL_LOG_CATEGORY_SYSTEM, "SDL revision: %s", SDL_REVISION);
value = SDL_GetAppMetadataProperty(SDL_PROP_APP_METADATA_NAME_STRING);
SDL_LogInfo(SDL_LOG_CATEGORY_SYSTEM, "App name: %s", value);
value = SDL_GetAppMetadataProperty(SDL_PROP_APP_METADATA_VERSION_STRING);
Expand Down

0 comments on commit 8408a18

Please sign in to comment.