Function list: Difference between revisions
From sc2k-reverse
Jump to navigationJump to search
Araxestroy (talk | contribs) Created page with "{{Heavy construction}} This is a table of function names. It is probably going to be unpleasant to update, but at least it looks nice and you can sort it. When adding new functions to the table, please make sure you insert them into the appropriate order by thunk address (the function that just has a <code>jmp '''ActualFunctionBody'''</code> instruction in it). {| class="wikitable sortable" |+ All functions |- ! {{tooltip|Thunk address|The address of the function thun..." |
Araxestroy (talk | contribs) Expanded the table schema a bit |
||
Line 6: | Line 6: | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|+ | |+ Uncategorized functions | ||
|- | |- | ||
! {{tooltip|Thunk address|The address of the function thunk that other functions call.}} ! {{tooltip| | ! {{tooltip|Thunk address|The address of the function thunk that other functions call.}} ! {{tooltip|Main address|The address that the thunk function jumps to, where the function actually starts}} ! {{tooltip|Return type|The function's return type from the C function signature.}} ! {{tooltip|Calling convention|Typically __cdecl, __stdcall, or __thiscall. Sometimes __usercall or __userpurge in IDA. Write __cdecl if it takes zero arguments.}} ! {{tooltip|Function name|Just the name, not the parameters}} ! {{tooltip|Arguments|What parameters the function takes, or blank for void.}} ! {{tooltip|Related functions|If any, and if not too long to list.}} ! Notes | ||
|- | |- | ||
| 0x4015E6 || 0x4731E0 || int || __cdecl || '''SimulationPrepareBudgetDialog''' || int a1 || arg a1 only referenced on line, seems to be more like "bool bUseParentWindow" | | 0x4015E6 || 0x4731E0 || int || __cdecl || '''SimulationPrepareBudgetDialog''' || int a1 || || arg a1 only referenced on line, seems to be more like "bool bUseParentWindow" | ||
|- | |- | ||
| 0x401820 || 0x413520 || void || __cdecl || '''SimulationProcessTick''' || || Advances the calendar one day and performs all appropriate daily/monthly/seasonal/annual tasks. | | 0x401820 || 0x413520 || void || __cdecl || '''SimulationProcessTick''' || || Called from '''GameDoIdleUpkeep''' || Advances the calendar one day and performs all appropriate daily/monthly/seasonal/annual tasks. | ||
|- | |- | ||
| 0x402D2E || 0x4734A0 || __int16 || __cdecl || '''SimulationCalculateBudgetUpdates''' || || | | 0x402A3B || 0x405AB0 || DWORD || __thiscall || '''GameDoIdleUpkeep''' || CWinApp* this || Called from '''CWinApp::OnIdle''' via the class CWinApp vtable || Could stand to have a better name. | ||
|- | |||
| 0x402D2E || 0x4734A0 || __int16 || __cdecl || '''SimulationCalculateBudgetUpdates''' || || || | |||
|- | |- | ||
|} | |} | ||
[[Category:Game data]] | [[Category:Game data]] |
Revision as of 00:56, 6 March 2025
This is a table of function names. It is probably going to be unpleasant to update, but at least it looks nice and you can sort it.
When adding new functions to the table, please make sure you insert them into the appropriate order by thunk address (the function that just has a jmp ActualFunctionBody
instruction in it).
Thunk address | Main address | Return type | Calling convention | Function name | Arguments | Related functions | Notes |
---|---|---|---|---|---|---|---|
0x4015E6 | 0x4731E0 | int | __cdecl | SimulationPrepareBudgetDialog | int a1 | arg a1 only referenced on line, seems to be more like "bool bUseParentWindow" | |
0x401820 | 0x413520 | void | __cdecl | SimulationProcessTick | Called from GameDoIdleUpkeep | Advances the calendar one day and performs all appropriate daily/monthly/seasonal/annual tasks. | |
0x402A3B | 0x405AB0 | DWORD | __thiscall | GameDoIdleUpkeep | CWinApp* this | Called from CWinApp::OnIdle via the class CWinApp vtable | Could stand to have a better name. |
0x402D2E | 0x4734A0 | __int16 | __cdecl | SimulationCalculateBudgetUpdates |