WBF

From wowdev
Revision as of 22:45, 19 July 2018 by Barncastle (talk | contribs) (Created page with "{{Template:SectionBox/VersionRange|min_expansionlevel=8}} WBF files are a {{Template:Sandbox/PrettyVersion|expansionlevel=8}} cache file, located within the Cache folder....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This section only applies to versions ≥ Battle.

WBF files are a Battle cache file, located within the Cache folder. They contain, at the very least, information about graphic card hardware, drivers and software. Each compatible device has it's own named WBF file e.g. DX12ShaderCache_AMD_Radeon_TM_R9_390_Series.wbf. They are only used by the Windows client and only for devices with DirectX 12 support.

Header

char magic[4];     // CSXG
uint32_t version;  // 2 Battle (8.0.1.26892) … Battle (8.0.1.27089), 3 ≥ Battle (8.0.1.27101)
char unk_1[0x18];  // final 8 bytes (at least) is driver version related
uint32_t OsVersion;
uint32_t OsBits;  // 0 = x86, 1 = x64
uint32_t unk_2;    // flags?
uint32_t vendor_id;
uint32_t device_id;
char unk_3[0x8];   // also device related
uint32_t revision;
uint32_t unk4;     // number of devices?
...