From c9c4796260c601f9eec504313003922fcf2e4610 Mon Sep 17 00:00:00 2001 From: SteelT Date: Mon, 3 Feb 2025 21:13:36 -0500 Subject: [PATCH] Set SDL_HINT_APP_NAME SDL hint As with SDL3 and SDL2-compat, the app name logic is different and the default name is instead a generic "SDL Application" --- src/sdl/i_system.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index 88304cdcc..d884ef40b 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -1639,6 +1639,11 @@ INT32 I_StartupSystem(void) SDLcompiled.major, SDLcompiled.minor, SDLcompiled.patch); I_OutputMsg("Linked with SDL version: %d.%d.%d\n", SDLlinked.major, SDLlinked.minor, SDLlinked.patch); + +#if (SDL_VERSION_ATLEAST(2, 0, 18)) + SDL_SetHint(SDL_HINT_APP_NAME, "Dr. Robotnik's Ring Racers"); +#endif + if (SDL_Init(0) < 0) I_Error("Dr. Robotnik's Ring Racers: SDL System Error: %s", SDL_GetError()); //Alam: Oh no.... #ifndef NOMUMBLE