#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,
};
extern enum m_state_e m_state;
-extern char m_return_reason[32];
-void M_Update_Return_Reason(char *s);
+extern char m_return_reason[128];
+void M_Update_Return_Reason(const char *s);
/*
// hard-coded menus
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
{