Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Print SDL version at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver-makes-code committed Jan 22, 2024
1 parent 99baa35 commit 2a8f5e9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Client/VoxelClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2a8f5e9

Please sign in to comment.