ByNameModding / BNM-Android

Modding il2cpp games by classes, methods, fields names on Android.
MIT License
210 stars 41 forks source link

How to specialize parameters? #39

Closed ballsofsoul closed 3 months ago

ballsofsoul commented 4 months ago

bool DoSomething(int, float, string);

BNM::Method<bool> DoSomethingByName;

How to define parameters to pass in bnm method?

Lsc0x80 commented 3 months ago

It's not required. if you need to get a method with specific parameters if there are multiple methods with the same number of parameters check the method in BNM::Class:

BNM::MethodBase GetMethod(const std::string_view &name, const std::initializer_list<BNM::CompileTimeClass> &parametersType) const;
ballsofsoul commented 5 days ago

this is not possible with obfuscated method names, which was my case