#ifndef MENU_H
#define MENU_H
+#include "qtypes.h"
+struct serverlist_entry_s;
+
enum m_state_e {
m_none,
m_main,
};
extern enum m_state_e m_state;
-extern char m_return_reason[128];
-void M_Update_Return_Reason(const char *s);
+
/*
// hard-coded menus
void MP_ToggleMenu (int mode);
void MP_Shutdown (void);*/
+qbool MP_ConsoleCommand(const char *text, size_t textlen);
+
//
// menu router
//
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 serverlist_entry_t *entry);
+extern int (*MR_GetServerListEntryCategory) (const struct serverlist_entry_s *entry);
typedef struct video_resolution_s
{