From 2a8f5e9a4f225f89522cbc8890bb348c44f42dca Mon Sep 17 00:00:00 2001 From: Oliver-makes-code Date: Mon, 22 Jan 2024 16:00:13 -0600 Subject: [PATCH] Print SDL version at startup --- Client/VoxelClient.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Client/VoxelClient.cs b/Client/VoxelClient.cs index d628e07..f5a7aeb 100644 --- a/Client/VoxelClient.cs +++ b/Client/VoxelClient.cs @@ -59,11 +59,18 @@ public VoxelClient() { } public override void Init() { + // SAFETY: We're only passing a single pointer that we know is non null. + unsafe { + SDL_version v; + Sdl2Native.SDL_GetVersion(&v); + Console.WriteLine($"SDL Version: {v.major}.{v.minor}.{v.patch}"); + } + ClientConfig.Load(); ClientConfig.Save(); - DiscordRpcManager.Initialize(); - DiscordRpcManager.UpdateStatus("test", "nya :3"); + // DiscordRpcManager.Initialize(); + // DiscordRpcManager.UpdateStatus("test", "nya :3"); integratedServer = new(); integratedServer.Start();