MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Load_Menu

Function Load_Menu

code/ui/ui_main.cpp:2877–2915  ·  view source on GitHub ↗

================= Load_Menu Load current menu file ================= */

Source from the content-addressed store, hash-verified

2875=================
2876*/
2877qboolean Load_Menu(const char **holdBuffer)
2878{
2879 const char *token2;
2880
2881 token2 = COM_ParseExt( holdBuffer, qtrue );
2882
2883 if (!token2[0])
2884 {
2885 return qfalse;
2886 }
2887
2888 if (*token2 != '{')
2889 {
2890 return qfalse;
2891 }
2892
2893 while ( 1 )
2894 {
2895 token2 = COM_ParseExt( holdBuffer, qtrue );
2896
2897 if ((!token2) || (token2 == 0))
2898 {
2899 return qfalse;
2900 }
2901
2902 if ( *token2 == '}' )
2903 {
2904 return qtrue;
2905 }
2906
2907//#ifdef _DEBUG
2908// extern void UI_Debug_AddMenuFilePath(const char *);
2909// UI_Debug_AddMenuFilePath(token2);
2910//#endif
2911 UI_ParseMenu(token2);
2912
2913 }
2914 return qfalse;
2915}
2916
2917/*
2918=================

Callers 1

UI_LoadMenusFunction · 0.70

Calls 2

UI_ParseMenuFunction · 0.70
COM_ParseExtFunction · 0.50

Tested by

no test coverage detected