benilla-re systems structs docs

cvar

rowsnamedverifiedproof twotested
functions178178 (100%)178 (100%)174 (97%)0 (0%)
globals5554 (98%)44 (80%)43 (78%)–
structs11 (100%)1 (100%)1 (100%)–
fields1616 (100%)16 (100%)16 (100%)–
all250249 (99%)239 (95%)234 (93%)0 (0%)

Docs

cvar: config

The registry's file: how it starts, the directory it keeps its files in, how Config.wtf is read and written, and how it shuts down. The file holds one line SET <name> "<value>" for each setting that differs from its default; reading it is running those lines as console commands.

cvar: containers

The CVar registry and the console command registry keep their records in the same hash table template of the Storm library. A table holds each record on two intrusive lists at once: a chain for its hash bucket and one list of every record in registration order. The two instances compile to near-identical code, so each function of the CVar file has a twin in the command registry file (console/commands#table-twins). The console's line list uses the same link and list code (console/screen#line-records).

cvar: defaults

Most registered settings give Register a literal default text, and tables/cvars.tsv lists it. Some settings give a text that the client builds at the call: formatted from a constant, a host value or the hardware row, or chosen by the client's locale. This doc resolves those. The camera settings are uicamera/cvars, the video options are options, and the hardware step that overwrites sixteen of them is console/hardware.

cvar: options

The video options file registers 31 settings of the world's drawing, each with a callback that checks the new text, writes a line to the console and stores the value where the drawing code reads it. A callback that returns 0 keeps the setting from changing (registry#setting-a-value). The file has no source path: it is placed by its run of static initializers, and the console's device start-up calls its one entry.

cvar: overview

The client's settings registry. A setting is a named record with a text value, its integer and float forms, a default, a reset value, a latched value, flags, a category, a help line and a change callback. The registry file finds, creates and sets them, gives each one a console command, and reads and writes Config.wtf. A second file in the system registers the 31 video options and holds their callbacks.

The docs split by topic: registry (the record, registering, setting, lookup and the registry's commands), config (start-up, the file, shutdown), containers (the hash table both registries are built from), options (the video options) and defaults (the defaults built at the call). This doc holds the object files, their static objects and the shared header constants. Every subsystem registers its settings here, and the console registers each setting's command (console/commands). The table of all registration sites is tables/cvars.tsv.

cvar: registry

The CVar registry: one record per named setting, found by name, with a text value, its integer and float forms, a default, a reset value, a latched value, flags, a category, a help line and a change callback. This doc holds the record, how a setting is registered, found and set, and the commands that come with every setting. The config file is config, the table the records live in is containers, and the video options are options.

Closure

100 roots. A walk of direct calls and jumps from them reaches 123 of the 178 functions the system owns, and stops at 49 functions of other systems. Vtable slots and stored addresses are not followed, so a function reached only that way is not counted.

Roots

Boundary

Functions 178

addressnameclassconfidencetestclosure
0x63cff0InitCvarInfinityThunkorchestrationverified, proof two✓
0x63d000InitCvarInfinityorchestrationverified, proof two✓
0x63d010InitCvarTableorchestrationverified, proof two✓
0x63d020InitCvarTableBodyorchestrationverified, proof two✓
0x63d0e0InitCvarTableAtExitorchestrationverified, proof two✓
0x63d0f0InitCvarTableDtororchestrationverified, proof two
0x63d260CVar::ClearLinksorchestrationverified, proof two✓
0x63d280CVar::~CVarorchestrationverified, proof two✓
0x63d380CVar::Initializeorchestrationverified, proof two✓
0x63d440s_CreatePathDirectorieshostverified, proof two✓
0x63d500SetCommandHandlerprimitiveverified, proof two✓
0x63d590CvarResetCommandHandlerorchestrationverified, proof two✓
0x63d640CvarDefaultCommandHandlerorchestrationverified, proof one✓
0x63d6f0CvarListCommandHandlerorchestrationverified, proof two✓
0x63d820CVarLoadFileorchestrationverified, proof two✓
0x63d910CVarDeleteConfigFilehostverified, proof two✓
0x63d980SaveConfighostverified, proof two✓
0x63daf0CVarShutdownorchestrationverified, proof two✓
0x63db90CVar::Registerprimitiveverified, proof two✓
0x63dde0CVarCommandHandlerorchestrationverified, proof two✓
0x63de30CVar::Lookupprimitiveverified, proof two✓
0x63dec0CVar::LookupVisibleprimitiveverified, proof two✓
0x63df50CVar::Setprimitiveverified, proof two✓
0x63dff0CVar::Resetorchestrationverified, proof two✓
0x63e010CVar::Defaultorchestrationverified, proof two✓
0x63e030CVar::SetReadOnlyprimitiveverified, proof two✓
0x63e060CVar::Updateorchestrationverified, proof two✓
0x63e0b0CVar::InternalSetprimitiveverified, proof two✓
0x63e1a0CVarDumpToFileunreachedverified, proof two✓
0x63e2b0CVarTableFreeNodeorchestrationverified, proof two✓
0x63e2e0CVarTableAllocNodeorchestrationverified, proof two✓
0x63e3a0CVarTableClearorchestrationverified, proof two✓
0x63e460CVarTableDeletingDtororchestrationverified, proof two✓
0x63e520CVarLinkUnlinkorchestrationverified, proof two✓
0x63e560CVarBucketDrainorchestrationverified, proof two✓
0x63e5f0CVarBucketsFreeorchestrationverified, proof two✓
0x63e680InitCvarTwoPiThunkorchestrationverified, proof two✓
0x63e690InitCvarTwoPiprimitiveverified, proof two✓
0x63e6a0InitCvarInvTwoPiThunkorchestrationverified, proof two✓
0x63e6b0InitCvarInvTwoPiprimitiveverified, proof two✓
0x63e6d0CVarLinkGetorchestrationverified, proof two✓
0x63e6f0CVarLinkNodeorchestrationverified, proof two✓
0x63e7b0CVarTableInitBucketsprimitiveverified, proof two✓
0x63e910CVarBucketDestroyorchestrationverified, proof two✓
0x63e9c0CVarListInitorchestrationverified, proof two✓
0x63e9f0CVarTableRehashprimitiveverified, proof two✓
0x63ebe0CVarBucketChainDrainorchestrationverified, proof one✓
0x63ec30CVarListResetorchestrationverified, proof two✓
0x63ec40CVarBucketsResizeprimitiveverified, proof two✓
0x63ed80CVarLinkBackSlotorchestrationverified, proof two✓
0x63edb0BucketGranularityprimitiveverified, proof two✓
0x63edf0RoundUpToUnitprimitiveverified, proof two✓
0x63ee10CVarBucketsReallocprimitiveverified, proof two✓
0x63ef20InitCvarSquare10Thunkorchestrationverified, proof two✓
0x63ef30InitCvarSquare10primitiveverified, proof two✓
0x63ef50InitCvarSquare11p111111Thunkorchestrationverified, proof two✓
0x63ef60InitCvarSquare11p111111primitiveverified, proof two✓
0x63ef80InitCvarSquare5p5555553Thunkorchestrationverified, proof two✓
0x63ef90InitCvarSquare5p5555553primitiveverified, proof two✓
0x63efb0InitCvarSquare10BThunkorchestrationverified, proof two✓
0x63efc0InitCvarSquare10Bprimitiveverified, proof two✓
0x63efe0InitCvarSquare5Thunkorchestrationverified, proof two✓
0x63eff0InitCvarSquare5primitiveverified, proof two✓
0x63f010InitCvarSquare10CThunkorchestrationverified, proof two✓
0x63f020InitCvarSquare10Cprimitiveverified, proof two✓
0x63f040InitCvarSquare30Thunkorchestrationverified, proof two✓
0x63f050InitCvarSquare30primitiveverified, proof two✓
0x63f070InitCvarSquare120Thunkorchestrationverified, proof two✓
0x63f080InitCvarSquare120primitiveverified, proof two✓
0x63f0a0InitCvarSquare20Thunkorchestrationverified, proof two✓
0x63f0b0InitCvarSquare20primitiveverified, proof two✓
0x63f0d0InitCvarSquare10DThunkorchestrationverified, proof two✓
0x63f0e0InitCvarSquare10Dprimitiveverified, proof two✓
0x63f100InitCvarSquare0p5Thunkorchestrationverified, proof two✓
0x63f110InitCvarSquare0p5primitiveverified, proof two✓
0x63f130InitCvarSquare3Thunkorchestrationverified, proof two✓
0x63f140InitCvarSquare3primitiveverified, proof two✓
0x63f160InitCvarSquare100Thunkorchestrationverified, proof two✓
0x63f170InitCvarSquare100primitiveverified, proof two✓
0x63f190InitCvarFiveThunkorchestrationverified, proof two✓
0x63f1a0InitCvarFiveorchestrationverified, proof two✓
0x63f1b0InitCvarSquare50Thunkorchestrationverified, proof two✓
0x63f1c0InitCvarSquare50primitiveverified, proof two✓
0x63f1e0InitCvarSquare100BThunkorchestrationverified, proof two✓
0x63f1f0InitCvarSquare100Bprimitiveverified, proof two✓
0x63f210InitCvarSquare40Thunkorchestrationverified, proof two✓
0x63f220InitCvarSquare40primitiveverified, proof two✓
0x63f240InitCvarSquare1p5Thunkorchestrationverified, proof two✓
0x63f250InitCvarSquare1p5primitiveverified, proof two✓
0x688400InitOptInfinityThunkorchestrationverified, proof two✓
0x688410InitOptInfinityorchestrationverified, proof two✓
0x688420InitOptUseCountorchestrationverified, proof two✓
0x688430InitOptUseCountBodyorchestrationverified, proof two✓
0x688450InitOptUseCountAtExitorchestrationverified, proof one✓
0x688460InitOptUseCountDtororchestrationverified, proof two✓
0x688470RegisterVideoOptionsorchestrationverified, proof two✓
0x688910VideoOptionsTeardownorchestrationverified, proof one✓
0x688920HandleLodOptionorchestrationverified, proof two✓
0x688960HandleFullAlphaOptionorchestrationverified, proof two✓
0x6889c0InitOptTwoPiThunkorchestrationverified, proof two
0x6889d0InitOptTwoPiprimitiveverified, proof two
0x6889e0InitOptInvTwoPiThunkorchestrationverified, proof two
0x6889f0InitOptInvTwoPiprimitiveverified, proof two
0x688a10HandleDoodadAnimOptionorchestrationverified, proof two✓
0x688a70HandleMapShadowsOptionorchestrationverified, proof two✓
0x688ab0HandleLodDistOptionorchestrationverified, proof two✓
0x688b10HandleSmallCullOptionprimitiveverified, proof two✓
0x688b70HandleDistCullOptionprimitiveverified, proof two✓
0x688bd0HandleMaxLightsOptionprimitiveverified, proof two✓
0x688c10CheckShadowLevelprimitiveverified, proof two✓
0x688c50HandleAlphaMipOptionunreachedverified, proof two✓
0x688c90HandleTexLodBiasOptionprimitiveverified, proof two✓
0x688ce0HandleTrilinearOptionprimitiveverified, proof two✓
0x688de0HandleFrillDensityOptionprimitiveverified, proof two✓
0x688e20HandleSpecularOptionorchestrationverified, proof two✓
0x688e90HandleMapObjOverbrightOptionorchestrationverified, proof two✓
0x688f00HandleMapObjLightLodOptionprimitiveverified, proof two✓
0x688f40HandlePixelShadersOptionorchestrationverified, proof two✓
0x688fb0HandleParticleDensityOptionprimitiveverified, proof two✓
0x689000HandleUnitDrawDistOptionprimitiveverified, proof two✓
0x689050HandleWaterLodOptionprimitiveverified, proof two✓
0x689090HandleBaseMipOptionprimitiveverified, proof two✓
0x6892e0HandleFootprintsOptionorchestrationverified, proof two✓
0x689330HandleBspCacheOptionorchestrationverified, proof two✓
0x689400HandleTriangleStripsOptionorchestrationverified, proof two✓
0x689450HandleFootstepBiasOptionprimitiveverified, proof two✓
0x6894e0HandleOcclusionOptionorchestrationverified, proof two✓
0x689510HandleSpellEffectLevelOptionprimitiveverified, proof two✓
0x6895b0InitOptSquare10Thunkorchestrationverified, proof two
0x6895c0InitOptSquare10primitiveverified, proof two
0x6895e0InitOptSquare11p111111Thunkorchestrationverified, proof two
0x6895f0InitOptSquare11p111111primitiveverified, proof two
0x689610InitOptSquare5p5555553Thunkorchestrationverified, proof two
0x689620InitOptSquare5p5555553primitiveverified, proof two
0x689640InitOptSquare10BThunkorchestrationverified, proof two
0x689650InitOptSquare10Bprimitiveverified, proof two
0x689670InitOptSquare5Thunkorchestrationverified, proof two
0x689680InitOptSquare5primitiveverified, proof two
0x6896a0InitOptSquare10CThunkorchestrationverified, proof two
0x6896b0InitOptSquare10Cprimitiveverified, proof two
0x6896d0InitOptSquare30Thunkorchestrationverified, proof two
0x6896e0InitOptSquare30primitiveverified, proof two
0x689700InitOptSquare120Thunkorchestrationverified, proof two
0x689710InitOptSquare120primitiveverified, proof two
0x689730InitOptSquare20Thunkorchestrationverified, proof two
0x689740InitOptSquare20primitiveverified, proof two
0x689760InitOptSquare10DThunkorchestrationverified, proof two
0x689770InitOptSquare10Dprimitiveverified, proof two
0x689790InitOptSquare0p5Thunkorchestrationverified, proof two
0x6897a0InitOptSquare0p5primitiveverified, proof two
0x6897c0InitOptSquare3Thunkorchestrationverified, proof two
0x6897d0InitOptSquare3primitiveverified, proof two
0x6897f0InitOptSquare100Thunkorchestrationverified, proof two
0x689800InitOptSquare100primitiveverified, proof two
0x689820InitOptFiveThunkorchestrationverified, proof two
0x689830InitOptFiveorchestrationverified, proof two
0x689840InitOptSquare50Thunkorchestrationverified, proof two
0x689850InitOptSquare50primitiveverified, proof two
0x689870InitOptSquare100BThunkorchestrationverified, proof two
0x689880InitOptSquare100Bprimitiveverified, proof two
0x6898a0InitOptSquare40Thunkorchestrationverified, proof two
0x6898b0InitOptSquare40primitiveverified, proof two
0x6898d0InitOptSquare1p5Thunkorchestrationverified, proof two
0x6898e0InitOptSquare1p5primitiveverified, proof two
0x689900InitOptProductThunkorchestrationverified, proof two
0x689910InitOptProductprimitiveverified, proof two
0x689930InitOptProductBThunkorchestrationverified, proof two
0x689940InitOptProductBprimitiveverified, proof two
0x689960InitOptProductCThunkorchestrationverified, proof two
0x689970InitOptProductCprimitiveverified, proof two
0x689990InitOptProductDThunkorchestrationverified, proof two
0x6899a0InitOptProductDprimitiveverified, proof two
0x6899c0InitOptInv4p1666665Thunkorchestrationverified, proof two
0x6899d0InitOptInv4p1666665primitiveverified, proof two
0x6899f0InitOptSquare10EThunkorchestrationverified, proof two
0x689a00InitOptSquare10Eprimitiveverified, proof two
0x689a20InitOptHalfOver10Thunkorchestrationverified, proof two
0x689a30InitOptHalfOver10primitiveverified, proof two

Globals 55

addressnametypeconfidence
0x80e1d40x80e1d4const char[8]verified, proof two
0x80e1dcs_cvarTableVtablevoid *[4]verified, proof two
0x81021cs_float43310000const floatverified, proof one
0x865124s_tagCVarBucketschar[43]verified, proof two
0x865150s_pathConsoleVarchar[52]verified, proof two
0x865388s_tagCVarchar[11]verified, proof two
0x86796cs_unitDrawDistValuefloatverified, proof two
0x868620s_smallCullValuefloatverified, proof two
0x868624s_distCullValuefloatverified, proof two
0x869560s_textPixelShaderschar[13]inferred
0x8695d8s_textSpecularchar[9]inferred
0x8696f8s_textSmallCullAt8696f8char[10]inferred
0x869718s_text004char[5]inferred
0x8697d0s_textLodchar[4]inferred
0x869abcs_textNearClipMustBeInRange001033char[38]inferred
0x88265cs_readContestuint32_tinferred
0x882674s_lastCharacterIndexCVaruint32_tinferred
0x882688s_readEulauint32_tinferred
0x8826d8s_readScanninguint32_tinferred
0x882720s_readTosuint32_tinferred
0xc4ed94s_cvarTableuint32_t[10]verified, proof two
0xc4edd4s_configFileNameconst char *verified, proof two
0xc4edd8s_configDirtyuint8_tverified, proof two
0xc5a45cs_maxLightsValueint32_tverified, proof two
0xc7f298s_unitDrawDistCVarCVar *verified, proof two
0xc7f2a0s_fullAlphaCVarCVar *verified, proof two
0xc7f2a4s_spellEffectLevelOptionCVarCVar *verified, proof two
0xc7f2bcs_trilinearCVarCVar *verified, proof two
0xc7f2c0s_waterLODCVarCVar *verified, proof two
0xc7f2ccs_specularCVarCVar *verified, proof two
0xc7f2d8s_textureLodDistCVarCVar *verified, proof two
0xc7f2e4s_anisotropicCVarCVar *verified, proof two
0xc7f2ecs_bspcacheCVarCVar *verified, proof two
0xc7f2f0s_baseMipCVarCVar *verified, proof two
0xc7f2f4s_frillDensityCVarCVar *verified, proof two
0xc7f2f8s_texLodBiasCVarCVar *verified, proof two
0xc7f300s_footstepBiasCVarCVar *verified, proof two
0xc7f304s_farclipCVarCVar *verified, proof two
0xc7f308s_triangleStripsCVarCVar *verified, proof two
0xc7f310s_mapObjLightLODCVarCVar *verified, proof two
0xc7f314s_lodCVarCVar *verified, proof two
0xc7f318s_mapShadowsCVarCVar *verified, proof two
0xc7f31cs_occlusionCVarCVar *verified, proof two
0xc7f320s_distCullCVarCVar *verified, proof two
0xc7f324s_mapObjOverbrightCVarCVar *verified, proof two
0xc7f330s_smallCullCVarCVar *verified, proof two
0xc7f344s_lodDistCVarCVar *verified, proof two
0xc7f348s_nearclipCVarCVar *verified, proof two
0xc7f34cs_horizonfarclipCVarCVar *verified, proof two
0xc7f350s_shadowLevelCVarCVar *verified, proof two
0xc7f354s_doodadAnimCVarCVar *verified, proof two
0xc7f360s_pixelShadersCVarCVar *verified, proof two
0xc7f364s_showfootprintsCVarCVar *verified, proof two
0xc7f368s_particleDensityCVarCVar *verified, proof two
0xc7f370s_maxLightsCVarCVar *verified, proof two

Structs