KSPModdingLibs / KSPCommunityFixes

Community patches for bugs in the KSP codebase
49 stars 17 forks source link

Always run KSPCF first in `ModuleManagerPostLoad` #238

Open al2me6 opened 2 months ago

al2me6 commented 2 months ago

As discussed with @JonnyOThan.

A MonoBehaviour gets called fairly late by MM (the ordering is explicit callbacks -> static methods -> MonoBehaviour methods). Furthermore, the calling order within each method signature is unspecified.

This PR inserts KSPCF as the first explicit callback, which allows other ModuleManagerPostLoad callbacks to rely on KSPCF fixes.