WriteScreenshot
function · unassigned
- Address
0x4426f0· 190 bytes, up to0x4427ad- Meaning
- Writes the captured frame to Screenshots\WoWScrnShot_<date>_<time>.tga
- Confidence
- verified, proof one
- Finding
- gx/capture#screenshot-file
Finding: Screenshot file in gx: screen capture
0x4426f0 fetches the buffer with 0x589cc0 and returns 0 when there is none. Otherwise it creates the directory Screenshots (0x834c5c, relative to the working directory, one non-recursive CreateDirectoryW whose result is ignored), formats the path %s\WoWScrnShot_%s.tga (0x834c44) from the directory and a local-time stamp %m%d%y_%H%M%S (0x832f60, built by 0x429450 with strftime), builds a TGA from the buffer with 0x5a43c0(buffer, w, h, 32, 0, 1, 0), strips its alpha with 0x5a4250, writes it with 0x5a4810 and destroys it. It returns 1 whenever a buffer existed; the write's result is discarded.
The derivation is in the doc.
Callers 1
- RunFramePass unassigned
Callees 8
- OsGetDateTimeStamp core
- OsCreateDirectory os
- 0x589cc0 gx
- TgaClose image
- TgaStripAlpha image
- TgaInitFromPixels image
- TgaSave image
- SStrPrintf storm
Calls and jumps by a bare address, from tables/calls.tsv.