CVar
struct · cvar · 196 bytes
- Meaning
- Names the setting record: hash, links, name, category, flags, value, default, reset, latched, help and callback
- Confidence
- verified, proof two
- Finding
- cvar/registry#cvar-record
Finding: CVar record in cvar: registry
A record is 0xc4 bytes, allocated under the tag CVar.
| offset | holds |
|---|---|
+0 | hash of the name |
+4, +0xc | bucket link, all-records link |
+0x14 | the name, a duplicate of the registered text |
+0x18 | category id |
+0x1c | flags |
+0x20 | value text |
+0x24, +0x28 | the value as a float and as an integer |
+0x2c | change count |
+0x30, +0x34 | default text, reset text |
+0x38 | latched text |
+0x3c, +0xbc, +0xc0 | help line (0x80 bytes), callback, callback argument |
The derivation is in the doc.
Fields 16
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | uint32_t | m_hash | Holds the hash of the name | verified, proof two | cvar/registry#cvar-record |
0x0004 | 8 | uint32_t[2] | m_bucketLink | Holds the link in the hash bucket chain | verified, proof two | cvar/registry#cvar-record |
0x000c | 8 | uint32_t[2] | m_listLink | Holds the link in the list of all records | verified, proof two | cvar/registry#cvar-record |
0x0014 | 4 | char * | m_name | Holds the name, a duplicate of the registered text | verified, proof two | cvar/registry#cvar-record |
0x0018 | 4 | uint32_t | m_category | Holds the category id | verified, proof two | cvar/registry#cvar-record |
0x001c | 4 | uint32_t | m_flags | Holds the flag bits: 0 saved, 1 latched, 2 read-only, 31 script-visible | verified, proof two | cvar/registry#cvar-record |
0x0020 | 4 | char * | m_value | Holds the value text | verified, proof two | cvar/registry#cvar-record |
0x0024 | 4 | float | m_floatValue | Holds the value as a float | verified, proof two | cvar/registry#cvar-record |
0x0028 | 4 | int32_t | m_intValue | Holds the value as an integer | verified, proof two | cvar/registry#cvar-record |
0x002c | 4 | uint32_t | m_changeCount | Holds the number of accepted sets | verified, proof two | cvar/registry#cvar-record |
0x0030 | 4 | char * | m_default | Holds the default text | verified, proof two | cvar/registry#cvar-record |
0x0034 | 4 | char * | m_reset | Holds the reset text | verified, proof two | cvar/registry#cvar-record |
0x0038 | 4 | char * | m_latched | Holds the latched text applied by Update | verified, proof two | cvar/registry#cvar-record |
0x003c | 128 | char[128] | m_help | Holds the help line | verified, proof two | cvar/registry#cvar-record |
0x00bc | 4 | void * | m_callback | Holds the change callback | verified, proof two | cvar/registry#cvar-record |
0x00c0 | 4 | void * | m_callbackArg | Holds the argument passed to the callback | verified, proof two | cvar/registry#cvar-record |
Globals of this type
0xc4e838s_gxWindowCVar0xc4e954s_gxOverrideCVar0xc4e9a0s_gxTripleBufferCVar0xc4e9dcs_gxMultisampleCVar0xc4e9e0s_gxRefreshCVar0xc4ea7cs_hwDetectCVar0xc4ea84s_gxDepthBitsCVar0xc4ea90s_gxColorBitsCVar0xc4ea94s_gxApiCVar0xc4eab0s_gxCursorCVar0xc4eab4s_gxFixLagCVar0xc4eab8s_gxAspectCVar0xc4eac4s_gxResolutionCVar0xc4eaccs_gxMaximizeCVar0xc4eb88s_gxVSyncCVar0xc4ec08s_widescreenCVar0xc4ec0cs_gxMultisampleQualityCVar0xc7f298s_unitDrawDistCVar0xc7f2a0s_fullAlphaCVar0xc7f2a4s_spellEffectLevelOptionCVar0xc7f2bcs_trilinearCVar0xc7f2c0s_waterLODCVar0xc7f2ccs_specularCVar0xc7f2d8s_textureLodDistCVar0xc7f2e4s_anisotropicCVar0xc7f2ecs_bspcacheCVar0xc7f2f0s_baseMipCVar0xc7f2f4s_frillDensityCVar0xc7f2f8s_texLodBiasCVar0xc7f300s_footstepBiasCVar0xc7f304s_farclipCVar0xc7f308s_triangleStripsCVar0xc7f310s_mapObjLightLODCVar0xc7f314s_lodCVar0xc7f318s_mapShadowsCVar0xc7f31cs_occlusionCVar0xc7f320s_distCullCVar0xc7f324s_mapObjOverbrightCVar0xc7f330s_smallCullCVar0xc7f344s_lodDistCVar0xc7f348s_nearclipCVar0xc7f34cs_horizonfarclipCVar0xc7f350s_shadowLevelCVar0xc7f354s_doodadAnimCVar0xc7f360s_pixelShadersCVar0xc7f364s_showfootprintsCVar0xc7f368s_particleDensityCVar0xc7f370s_maxLightsCVar