Skip to content
Snippets Groups Projects
Commit d281862b authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Call exit() from exit_sdl_con if ciolib_reaper is enabled and SDL is not initialized.

parent ff070e32
No related branches found
No related tags found
No related merge requests found
Pipeline #6164 canceled
...@@ -296,6 +296,10 @@ void exit_sdl_con(void) ...@@ -296,6 +296,10 @@ void exit_sdl_con(void)
ciolib_reaper = 0; ciolib_reaper = 0;
if (sdl_init_good) if (sdl_init_good)
sdl_user_func_ret(SDL_USEREVENT_QUIT); sdl_user_func_ret(SDL_USEREVENT_QUIT);
else {
if (ciolib_reaper)
exit(0);
}
} }
void sdl_copytext(const char *text, size_t buflen) void sdl_copytext(const char *text, size_t buflen)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment