REDIVIVUS

Proposals / #1654

Type Mac WEATHER_SetMode as void __fastcc (int bNewState, int bForceReset)

checked · by KierTaylor · submitted 2026-11-08

Mac body: ECX -> ESI is the new state (compared with and finally stored into the state global), EDX is only tested when the state is unchanged to force the reset call (0x0006c624); no stack args, plain RET. Same logic as Windows WEATHER_SetEnabledState 0x00472590 (ESI = bNewState, [EBP+8] = bForceReset), so args are named by role from it. Callers in WEATHER_UpdateStateAct5 set EDX before the call (0x0006c766).

Changes 1, applied together

  1. Set prototype mac 0x0006e4c4

    signatureundefined WEATHER_SetMode(void)→void WEATHER_SetMode(int bNewState, int bForceReset)
    conventionunknown→__fastcc