0
0
Fork 0
mirror of https://git.code.sf.net/p/quake/quakeforge synced 2025-03-22 18:31:27 +00:00

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}
};
static void
bi_shutdown (void)
{
S_Shutdown ();
IN_Shutdown ();
VID_Shutdown ();
}
void
BI_Init (progs_t *pr)
{
@ -162,6 +170,8 @@ BI_Init (progs_t *pr)
PI_Init ();
PI_RegisterPlugins (client_plugin_list);
Sys_RegisterShutdown (bi_shutdown);
VID_Init_Cvars ();
IN_Init_Cvars ();
Mod_Init_Cvars ();