From 1e41a10feb9b7e268bdcd81d787338385c4ba11c Mon Sep 17 00:00:00 2001 From: Susko3 Date: Mon, 22 Apr 2024 21:52:17 +0200 Subject: [PATCH] Log SDL3 version and revision on successful initialisation --- osu.Framework/Platform/SDL3Window.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/osu.Framework/Platform/SDL3Window.cs b/osu.Framework/Platform/SDL3Window.cs index fbff4b4b87..de3d3ef7b9 100644 --- a/osu.Framework/Platform/SDL3Window.cs +++ b/osu.Framework/Platform/SDL3Window.cs @@ -154,6 +154,12 @@ protected SDL3Window(GraphicsSurfaceType surfaceType) throw new InvalidOperationException($"Failed to initialise SDL: {SDL3.SDL_GetError()}"); } + SDL_Version version; + SDL3.SDL_GetVersion(&version); + Logger.Log($@"SDL3 Initialized + SDL3 Version: {version.major}.{version.minor}.{version.patch} + SDL3 Revision: {SDL3.SDL_GetRevision()}"); + SDL3.SDL_LogSetPriority(SDL_LogCategory.SDL_LOG_CATEGORY_ERROR, SDL_LogPriority.SDL_LOG_PRIORITY_DEBUG); SDL3.SDL_SetLogOutputFunction(&logOutput, IntPtr.Zero); SDL3.SDL_SetEventFilter(&eventFilter, ObjectHandle.Handle);