SamboyCoding / Cpp2IL

Work-in-progress tool to reverse unity's IL2CPP toolchain.
MIT License
1.56k stars 178 forks source link

Empty Method Filling Bug for Generic Base Classes #214

Closed ds5678 closed 6 months ago

ds5678 commented 1 year ago

Description

In classes derived from generic base classes, base constructor calls get emitted incorrectly.

Example

This is taken from Sons of the Forest.

ConsumableStimuli : MonoBehaviourStimuliValue<ConsumableData>

protected ConsumableStimuli()
{
      ((MonoBehaviourStimuliValue<>)(object)this)._002Ector();
}