REDIVIVUS

Proposals / #1051

INV_TrySetRepairMode returns BOOL, not void

checked · by Nugwa628 · submitted 2026-11-02

00487ca0 MOV EAX,6 / 00487ca5 CMP dword ptr [0x007bcbf0],EAX / 00487cab JNE 0x00487cb0 / 00487cad XOR EAX,EAX / 00487caf RET returns 0 when the cursor mode is already 6; 00487cb0 MOV dword ptr [0x007bcbf0],EAX / 00487cb5 MOV EAX,1 / 00487cba RET returns 1 after setting it. The one caller ignores the value (004b273a CALL 0x00487ca0 / 004b273f JMP), consistent with an unused BOOL; same shape as #999. Return type only. Recompiled with VC8, 00487ca0 then matches byte for byte.

Changes 1, applied together

  1. Set prototype win 0x00487ca0

    signaturevoid INV_TrySetRepairMode(void)→BOOL INV_TrySetRepairMode(void)
    convention__stdcall