Name generic parameters forwarded to named callee parameters (resubmit)
Ghidra v1809 · 41c2819
Resubmit of #698 with the name the review asked for, dropping what others have applied since. Each parameter is passed unchanged to a callee parameter that already has a specific name, checked register by register and push by push in the machine code. SUNITNPC_RefreshNpcItem's ECX is the player unit: SUNITPROXY_GetPlayerProxyInventory uses its EDX only for the GUID matched against the proxy entry's nPlayerGUID, and the only caller passes the player. Its callee's own parameter names are swapped. PARTYSCREEN_SetMutualPlayerRelationship's ECX is the callee's SGAMEDATA * pGame. WndProc's parameter is nWParam, as on SMsgDispatchMessage.
Changes 12, applied together
Rename variable
win 0x0063c4f0 Stack[0xc]namenParam→nBeltSlotRename variable
win 0x0056ede0 Stack[0x10]namenParam1→nXRename variable
win 0x0056ede0 Stack[0x14]namenParam2→nYRename variable
win 0x0057e270 Stack[0xc]namenParam→nSkillLevelRename variable
win 0x00576650 ECXnamenParam1→pPlayerUnitRename variable
win 0x004f9a80 Stack[0xc]namenParam→nWParamRename variable
win 0x006039c0 Stack[0x4]namenParam→dwHashValRename variable
win 0x005d40f0 EDXnamenParam→nInitSeedRename variable
win 0x00426050 Stack[0x8]namenParam→nByteCountRename variable
win 0x00576f40 Stack[0x4]namenParam→nGoldAmountRename variable
win 0x005a5b30 ECXnamenParam→pGameRetype variable
win 0x005a5b30 ECXtypeint32_t→SGAMEDATA *