geokar2006 / ByNameModding

MOVED https://github.com/ByNameModding/BNM-Android
113 stars 34 forks source link

BNM doesn't use `il2cpp_image_get_class` #32

Closed YummyBacon5 closed 1 year ago

YummyBacon5 commented 1 year ago

If a game has il2cpp_image_get_class then BNM will apparently use it, this makes Image$$GetTypes never be assigned to, but this function is still used in the code, causing a crash. I assume that il2cpp_image_get_class was meant to be used instead in these places

geokar2006 commented 1 year ago

It work if user has c++17 and upper and don't defined BNM_DISABLE_NEW_CLASSES 1 here, but otherwise yes, it never assigned. I will fix this, thx for reporting this issue.