You are viewing a potentially older version of this package. View all versions.
Hamunii-TypeLoadExceptionFixer-1.0.4 icon

TypeLoadExceptionFixer

Fixes issues caused by unloadable types.

Date uploaded 2 months ago
Version 1.0.4
Download link Hamunii-TypeLoadExceptionFixer-1.0.4.zip
Downloads 121457
Dependency string Hamunii-TypeLoadExceptionFixer-1.0.4

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
MonoDetour-MonoDetour_BepInEx_5-0.7.0 icon
MonoDetour-MonoDetour_BepInEx_5

Integrates MonoDetour's logger with BepInEx 5 and as a side effect initializes MonoDetour early. MonoDetour is an easy and convenient .NET detouring library, powered by MonoMod.RuntimeDetour.

Preferred version: 0.7.0

README

TypeLoadExceptionFixer

Fixes the following issues:

  • Assembly.GetTypes unexpectedly throwing if there are unloadable types
  • Unity's Input system initialization exploding if there are unloadable types

CHANGELOG

Changelog

[1.0.4] - 2025-10-10

Changed

  • Removed redundant code

[1.0.3] - 2025-10-09

Changed

  • Updated readme

[1.0.2] - 2025-10-9

Added

  • Assembly.GetTypes hook was added back because it probably fixes more issues than it creates

[1.0.1] - 2025-10-9

Fixed

  • ILHook moved into a preloader patcher so it's always early enough because mods can cause InputManager to initalize early

Changed

  • Removed hook which makes Assembly.GetTypes never throw as it can cause unintended consequences maybe?
    • A local version of this hook was implemented for InputManager.RegisterCustomTypes

[1.0.0] - 2025-10-08

Added

  • Everything