Skip to content

prim: Add file initializer to seadEnum - #265

Open
MonsterDruide1 wants to merge 2 commits into
open-ead:masterfrom
MonsterDruide1:enum-static-init
Open

prim: Add file initializer to seadEnum#265
MonsterDruide1 wants to merge 2 commits into
open-ead:masterfrom
MonsterDruide1:enum-static-init

Conversation

@MonsterDruide1

@MonsterDruide1 MonsterDruide1 commented May 16, 2026

Copy link
Copy Markdown
Contributor

SMO shows a function which fetches the sObject of both classes once within .init_array - to re-construct that, the constructor can just call into getObject() and discard the result, such that sObject must be prepared (and fetched) on game boot.


This change is Reviewable

@MonsterDruide1 MonsterDruide1 self-assigned this May 16, 2026
@german77

Copy link
Copy Markdown
Contributor

Do we have a function name or address where I could verify this implementation?

@MonsterDruide1

Copy link
Copy Markdown
Contributor Author

I had to find it again, but it seems like I was talking about 0x71007466F0 (SMO, 1.0) there.

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.

2 participants