From 39bf47a26538a1fc87c03abcace08dd0117e6b0f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 9 Nov 2004 22:35:00 +0000 Subject: [PATCH] use the resolve hook instead of a load function This is an imperfect revision of history. --- libs/console/menu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/console/menu.c b/libs/console/menu.c index a354fa5da..47947d872 100644 --- a/libs/console/menu.c +++ b/libs/console/menu.c @@ -448,6 +448,7 @@ Menu_Init (void) menu_pr_state.allocate_progs_mem = menu_allocate_progs_mem; menu_pr_state.free_progs_mem = menu_free_progs_mem; menu_pr_state.load_file = menu_load_file; + menu_pr_state.resolve = menu_resolve_globals; menu_hash = Hash_NewTable (61, menu_get_key, menu_free, 0); @@ -461,15 +462,12 @@ Menu_Init (void) PR_Cmds_Init (&menu_pr_state); R_Progs_Init (&menu_pr_state); - PR_AddLoadFunc (&menu_pr_state, menu_resolve_globals); - confirm_quit = Cvar_Get ("confirm_quit", "1", CVAR_ARCHIVE, NULL, "confirm quit command"); Cmd_AddCommand ("togglemenu", togglemenu_f, "Toggle the display of the menu"); Cmd_AddCommand ("quit", quit_f, "Exit the program"); - } void