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. 9
      filesystem/filesystem.h

5
filesystem/filesystem.c

@ -918,6 +918,11 @@ void FS_ParseGenericGameInfo( gameinfo_t *GameInfo, const char *buf, const qbool @@ -918,6 +918,11 @@ void FS_ParseGenericGameInfo( gameinfo_t *GameInfo, const char *buf, const qbool
pfile = COM_ParseFile( pfile, token, sizeof( 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 );
}
}
}

9
filesystem/filesystem.h

@ -76,10 +76,11 @@ typedef struct gameinfo_s @@ -76,10 +76,11 @@ typedef struct gameinfo_s
size_t size;
int gamemode;
qboolean secure; // prevent to console acess
qboolean nomodels; // don't let player to choose model (use player.mdl always)
qboolean noskills; // disable skill menu selection
qboolean render_picbutton_text; // use font renderer to render WON buttons
qboolean secure; // prevent to console acess
qboolean nomodels; // don't let player to choose model (use player.mdl always)
qboolean noskills; // disable skill menu selection
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 mp_entity[32]; // e.g. info_player_deathmatch

Loading…
Cancel
Save