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"
This commit is contained in:
SteelT 2025-02-03 21:13:36 -05:00
parent 3c19027aa8
commit c9c4796260

View file

@ -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