Browse Source

filesystem: add new token internal_vgui_support to mark client dlls that have internal VGUI implementation(to support other UI systems)

pull/2/head
Alibek Omarov 2 years ago
parent
commit
b1ee27a3f3
  1. 5
      filesystem/filesystem.c
  2. 1
      filesystem/filesystem.h

5
filesystem/filesystem.c

@ -918,6 +918,11 @@ void FS_ParseGenericGameInfo( gameinfo_t *GameInfo, const char *buf, const qbool
pfile = COM_ParseFile( pfile, token, sizeof( token )); pfile = COM_ParseFile( pfile, token, sizeof( token ));
GameInfo->render_picbutton_text = Q_atoi( token ); GameInfo->render_picbutton_text = Q_atoi( token );
} }
else if( !Q_stricmp( token, "internal_vgui_support" ))
{
pfile = COM_ParseFile( pfile, token, sizeof( token ));
GameInfo->internal_vgui_support = Q_atoi( token );
}
} }
} }

1
filesystem/filesystem.h

@ -80,6 +80,7 @@ typedef struct gameinfo_s
qboolean nomodels; // don't let player to choose model (use player.mdl always) qboolean nomodels; // don't let player to choose model (use player.mdl always)
qboolean noskills; // disable skill menu selection qboolean noskills; // disable skill menu selection
qboolean render_picbutton_text; // use font renderer to render WON buttons qboolean render_picbutton_text; // use font renderer to render WON buttons
qboolean internal_vgui_support; // skip loading VGUI, pass ingame UI support API to client
char sp_entity[32]; // e.g. info_player_start char sp_entity[32]; // e.g. info_player_start
char mp_entity[32]; // e.g. info_player_deathmatch char mp_entity[32]; // e.g. info_player_deathmatch

Loading…
Cancel
Save