]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - menu.h
PRVM: optimise tempstring creation
[xonotic/darkplaces.git] / menu.h
diff --git a/menu.h b/menu.h
index e810587185e8f0e1907487f7f067c78041a3083a..2344f44434da5b0338e787db258f8b9d7a297ab7 100644 (file)
--- a/menu.h
+++ b/menu.h
@@ -21,6 +21,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #ifndef MENU_H
 #define MENU_H
 
+#include "qtypes.h"
+struct serverlist_entry_s;
+
 enum m_state_e {
        m_none,
        m_main,
@@ -49,8 +52,7 @@ enum m_state_e {
 };
 
 extern enum m_state_e m_state;
-extern char m_return_reason[128];
-void M_Update_Return_Reason(const char *s);
+
 
 /*
 // hard-coded menus
@@ -69,6 +71,8 @@ void MP_Draw (void);
 void MP_ToggleMenu (int mode);
 void MP_Shutdown (void);*/
 
+qbool MP_ConsoleCommand(const char *text, size_t textlen);
+
 //
 // menu router
 //
@@ -81,7 +85,7 @@ 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
 {