How do I disable reading hints from environment variables?

There doesn’t seem to be a way to do this without unsetting all environment variables myself right? I think there should be an option to disable reading environment variables when SDL initializes. I might understand for things like the audio driver and video driver but there are also many hints that describe capability of my application so if the end user can set it to an arbitrary value that causes unexpected behavior on my end.
Also maybe I simply don’t want this so is there any way to turn it off in SDL3?

I’m not sure if that’s a problem? Most users don’t touch environment variables and if they do they may be upset if you ignore their variables? What would break you anyway? WAVE_CHUNK_LIMIT?

I agree with Levo. If the user use environment variables to set hints it’s probably for a reason (and the user should blame himself if it breaks things). It’s not something you’re likely to do by accident.

That said, if you do find some hints that really shouldn’t be modified by the user you can always override them explicitly using SDL_SetHintWithPriority.

SDL_SetHintWithPriority(SDL_HINT_APP_NAME, "My Awesome Game", SDL_HINT_OVERRIDE);

Another option is you can look through the env vars for anything that starts with SDL and print to stderr that overriding variables may cause problems (or unset the var but I don’t like that idea)