Skip to content

World: name 14 verified functions and match 4 helpers - #153

Merged
roengstrom merged 5 commits into
roengstrom:mainfrom
johnbrett:world/149-1-types-v2
Oct 29, 2026
Merged

roengstrom merged 5 commits into
roengstrom:mainfrom
johnbrett:world/149-1-types-v2

Conversation

@johnbrett

Copy link
Copy Markdown
Contributor

Part 1 of splitting up #149.

Named after debugger tracing (each one confirmed running in the expected scenario):

  • func_800AE31C → InitActors
  • func_800B0EAC → DrawBankModel
  • func_800B164C → InitPlayerPosition
  • func_800B18B8 → SyncSlotsToPlayer
  • func_800B3FD4 → SaveScenePlacement
  • func_800B438C → RestoreScenePlacement (runs on return from battle)
  • func_800B5ADC → GetFootprintCorners
  • func_800B881C → ResetPositionHistory
  • func_800BD82C → RegisterSceneObject
  • func_800BFD10 → DrawSkinnedModel
  • func_800BFFEC → ResetWorldRenderState
  • func_800C0CA4 → ClaimObjectSlot
  • func_800C4AE4 → TickStepCounters
  • func_8009F594 → TurnTowardAngle

Newly matched:

  • TickStepCounters and func_800BBF0C, finishing the reference C that was in the comments
  • TurnTowardAngle
  • func_800B97A0

Verify: 368 matched, 0 mismatched.

@roengstrom roengstrom left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's revert the renames of functions that are not yet decomped. I've tried verifying a few and they don't seem to do what their names imply. I suspect the names are still ai generated from inference, but we need to be strict and actually verify everything using a debugger.

Comment thread include/world/we_object3.h Outdated
Comment thread src/world/we_object6.c Outdated
Comment thread include/world/we_object6.h Outdated
Comment thread src/world/we_object7.c Outdated
Comment thread src/world/we_object8.c Outdated
Comment thread src/world/we_object13.c Outdated
Comment thread src/world/we_object13.c Outdated
Comment thread src/world/we_object13.c Outdated
Comment thread src/world/we_object13.c Outdated
Comment thread src/world/we_object2.c Outdated
@johnbrett
johnbrett force-pushed the world/149-1-types-v2 branch from 27de7b1 to 9906bfc Compare October 20, 2026 20:52

@roengstrom roengstrom left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late review, been a busy week. But looks good generally, just a couple of things that might be able to be improved?

Comment thread src/world/we_object9.c Outdated
Comment thread src/world/we_object13.c
Use a signed halfword for levelUpDisplayTimer so its negative sentinel needs no casts.
@johnbrett
johnbrett force-pushed the world/149-1-types-v2 branch from 9906bfc to 20cb9cf Compare October 26, 2026 00:34

@roengstrom roengstrom left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's good enough for merging, the requested cleanup can be done later I guess. Feels like a good idea to merge before it becomes stale.

@roengstrom
roengstrom merged commit b9e5996 into roengstrom:main Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants