mirror of
https://github.com/LukeFZ/Il2CppInspectorRedux.git
synced 2025-12-19 01:39:44 +05:00
Bug #1 is that in 32-bit programs, typeDefinitionIndex might be 0xffff_ffff_ffff_ffff instead (32-bit -1 sign-extended to 64 bits), so we fix that by simply masking to get the low 32 bits. Bug #2 is that, if the TypeRef points to no generic instance, we return null, which wasn't being checked for in the IDAPythonScript generator. Since that's the only time we could get a null type in Types, we simply remove nulls from the Types collection.