-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation about what time you must set the environment variables #188
Comments
I'm going to make a note that sdl12-compat expects these to be set before the process starts and not change during the life of the process, and any places where changing it later might affect operation is purely accidental and might change. The idea is that no 1.2-using process should ever be managing these environment variables, because they shouldn't know they're using sdl12-compat instead of SDL 1.2, so sdl12-compat assumes they are set upfront, even though it checks some of them at different times. |
(If someone wants to make a compelling argument to the contrary, though, I'll consider revisiting, but I think this is reasonable.) |
I think that it might be reasonable to allow being changed before Some programs might include some special handling, e.g. Free Hero Mesh has a (currently unimplemented) This might include reading configuration options from the configuration file (and which ones are used might, in some cases, depend on which puzzle set files are specified as command-line arguments). Other times, some settings might permanently be set. Not all of the environment variables are necessarily useful to be set within the program, but in some cases they might be, before initializing SDL. |
Actually, this isn't true, we give them a version number they can check, a I'll document these more closely, even though most of them legitimately are checked once at SDL_Init or SDL_SetVideoMode time. |
Can the environment variables be set after the program has started, and if so, when? Before
SDL_Init
call? BeforeSDL_SetVideoMode
call? Is it different for different environment variables, or for which subsystems are initialized? You should document this.The text was updated successfully, but these errors were encountered: