Add notes to SDL_Quit atexit call

Co-authored-by: Eldred Habert <eldredhabert0@gmail.com>
This commit is contained in:
Jonne Kokkonen
2024-06-15 20:33:26 +03:00
committed by GitHub
parent ee3878e43a
commit 7f110c4415

View File

@@ -1052,7 +1052,9 @@ int main(int argc, char **argv)
#endif
SDL_Init(SDL_INIT_EVERYTHING & ~SDL_INIT_AUDIO);
atexit(SDL_Quit);
// This is, essentially, best-effort.
// This function will not be called if the process is terminated in any way, anyhow.
(void)atexit(SDL_Quit);
if ((console_supported = CON_start(completer))) {
CON_set_repeat_empty(true);