Shutdown some subsystems on exit.

This fixes the problem with X keyboard repeat not being restored.
This commit is contained in:
Bill Currie 2016-01-03 17:39:03 +09:00
parent 61c6a4b68e
commit a54f3d9035

View file

@ -151,6 +151,14 @@ static builtin_t builtins[] = {
{0} {0}
}; };
static void
bi_shutdown (void)
{
S_Shutdown ();
IN_Shutdown ();
VID_Shutdown ();
}
void void
BI_Init (progs_t *pr) BI_Init (progs_t *pr)
{ {
@ -162,6 +170,8 @@ BI_Init (progs_t *pr)
PI_Init (); PI_Init ();
PI_RegisterPlugins (client_plugin_list); PI_RegisterPlugins (client_plugin_list);
Sys_RegisterShutdown (bi_shutdown);
VID_Init_Cvars (); VID_Init_Cvars ();
IN_Init_Cvars (); IN_Init_Cvars ();
Mod_Init_Cvars (); Mod_Init_Cvars ();