REDIVIVUS

Proposals / #1594

Mac GetTempPathFreeSpace: uint32_t __cdecl (void)

checked · by KierTaylor · submitted 2026-11-08

It reads no register or stack args. On first use it picks the temp volume (FindMostEmptyVolume 0x0002a6be). It then zeroes a 0x7a-byte HParamBlock (0x00028d7f), sets its volume ref, calls PBHGetVInfoSync 0x0030b696, and returns free blocks * allocation block size (MOVZX/IMUL at 0x0002a6f6), or 0 on error. Caller: FUN_0019bed3 (startup disk-space check).

Changes 1, applied together

  1. Set prototype mac 0x0002a6a3

    signatureundefined GetTempPathFreeSpace(void)→uint32_t GetTempPathFreeSpace(void)
    conventionunknown→__cdecl