benilla-re systems structs docs

WowTime::WowDecodeTime

function · base · orchestration

Address
0x642c30 · 30 bytes, up to 0x642c4d
Signature
void __fastcall (uint32_t packed, WowTime *out)
Meaning
Decodes a packed date into a seven-field record by calling 0x642b30
Confidence
verified, proof two
Name from
the community database (idb)
Finding
gametime/messages#packed-date-fields
Test
gametime::gametime_642c30_decode_time

Finding: Packed date fields in gametime: messages

WowTime::WowDecodeTime (0x642c30, the packed dword in ecx, a 28-byte record in edx) calls 0x642b30, which stores seven int32 fields: minute (bits 0 to 5) at +0, hour (6 to 10) at +4, weekday (11 to 13) at +8, day (14 to 19) at +0xc, month (20 to 23) at +0x10, year (24 to 28) at +0x14 and a two-bit field (29 and 30) at +0x18. A field whose bits are all ones is stored as −1, and bit 31 is ignored. The day field holds the day − 1, the month field the month − 1 and the year field the year − 2000. No field is range-checked: a decoded hour reaches 30 and a minute 62.

The derivation is in the doc.

Callers 8

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.