Skip to content

Commit

Permalink
init: Also log the SDL version number and revision here
Browse files Browse the repository at this point in the history
Signed-off-by: Simon McVittie <[email protected]>
  • Loading branch information
smcv committed Oct 7, 2024
1 parent a56cdb3 commit 99b8367
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SDL.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ void SDL_InitMainThread(void)
if (!done_info) {
const char *value;

SDL_LogInfo(SDL_LOG_CATEGORY_SYSTEM, "SDL %d.%d.%d (%s)",
SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_MICRO_VERSION, 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 99b8367

Please sign in to comment.