REDIVIVUS

Proposals / #1460

Mac SLOG_OutputTime: void __fastcc (void* pLog ECX, int32_t bHasData EDX)

checked · by KierTaylor · submitted 2026-11-08

ECX -> ESI is the log (+0x120 timestamp flag, +0x124 buffer, +0x114 length). EDX is saved to [EBP-0x24] and tested (CMP [EBP-0x24],0 at 0x00018752) to choose the time format. There are no stack args. Plain RET; EAX holds only a leftover length. SLogPend 0x000189a9 passes ECX=log, EDX=1. Same roles as Windows twin 0x0041fba0 (bHasData, pLog), in Mac register order. The log is typed void* because D2SLogStrc is not in the Mac DB.

Changes 1, applied together

  1. Set prototype mac 0x0001869c

    signatureundefined SLOG_OutputTime(void)→void SLOG_OutputTime(void* pLog, int32_t bHasData)
    conventionunknown→__fastcc