X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=menu.h;h=38a034f6629b1d419dbc6b996bca5c025e184e31;hp=b9e4cb10f455a2a9ea0a57085cf2af5127bf32a3;hb=ec9556c8abaf1dd6acf9156c73da94f856f066bc;hpb=1ea860909ea670451b5200ccd30aa19241cd081a diff --git a/menu.h b/menu.h index b9e4cb10..38a034f6 100644 --- a/menu.h +++ b/menu.h @@ -21,8 +21,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef MENU_H #define MENU_H -#define M_PROG_FILENAME "menu.dat" -#define M_NAME "menu" +#include "qtypes.h" +struct serverlist_entry_s; enum m_state_e { m_none, @@ -72,6 +72,8 @@ void MP_Draw (void); void MP_ToggleMenu (int mode); void MP_Shutdown (void);*/ +qbool MP_ConsoleCommand(const char *text); + // // menu router // @@ -79,10 +81,12 @@ void MP_Shutdown (void);*/ void MR_Init_Commands (void); void MR_Init (void); void MR_Restart (void); -extern void (*MR_KeyEvent) (int key, int ascii, qboolean downevent); +extern void (*MR_KeyEvent) (int key, int ascii, qbool downevent); extern void (*MR_Draw) (void); extern void (*MR_ToggleMenu) (int mode); extern void (*MR_Shutdown) (void); +extern void (*MR_NewMap) (void); +extern int (*MR_GetServerListEntryCategory) (const struct serverlist_entry_s *entry); typedef struct video_resolution_s {