LegacyBundleFontFix
Fixes bugged/broken TextMeshPro text in custom levels and mods whose Unity 2022 AssetBundles load directly via AssetBundle.LoadFromFile (such as FNAFLevel) by routing them through REPOLib's legacy font fixer.LegacyBundleFontFix
Fixes bugged/broken TextMeshPro text in custom levels and mods (such as FNAFLevel) whose Unity 2022 AssetBundles call AssetBundle.LoadFromFile directly instead of going through REPOLib's bundle loader.
What it does
- Intercepts direct
AssetBundle.LoadFromFile_Internalcalls for Unity< 6000bundles and passes them throughREPOLib'sFontAssetMaterialPatch.BeginLegacyBundle/EndLegacyBundle. - Performs a safe startup/scene-load sweep to register any already-loaded legacy
TMP_FontAsset/TMP_SpriteAssetinstances withREPOLiband refresh activeTMP_Textcomponents.
