Hotfix: defer AssemblyLoad Harmony patches (boot Crash!!!) #2

Merged
epistemophiliac merged 1 commit from hotfix/assemblyload-defer into main 2026-07-23 12:59:40 +00:00

Summary

  • Defer StatManager / PowerButton / PizzaSimulator Harmony work off AssemblyLoad via DeferredAssemblyWork (pumped in Update).
  • Fixes native Unity Crash!!! during NML prep that never reached BugSink.

Test plan

  • Boot WorldBox + AexoLoader + ModernBox
  • No Crash!!! at Start
  • BugSink still gets managed errors after boot
## Summary - Defer StatManager / PowerButton / PizzaSimulator Harmony work off AssemblyLoad via DeferredAssemblyWork (pumped in Update). - Fixes native Unity Crash!!! during NML prep that never reached BugSink. ## Test plan - [ ] Boot WorldBox + AexoLoader + ModernBox - [ ] No Crash!!! at Start - [ ] BugSink still gets managed errors after boot
Defer Harmony patches off AssemblyLoad to stop native boot crashes.
Some checks failed
AexoLoader/pipeline/head There was a failure building this commit
6974ae3f75
StatManagerGuard was calling GetTypes/Patch inside AssemblyLoad while NML prep also patched, which hard-crashed Unity before BugSink could report. Queue that work and pump it from Update.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
epistemophiliac/worldboxmodmanager!2
No description provided.