geokar2006 / ByNameModding

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

How to LoadClass (inner class) #12

Closed ghost closed 2 years ago

ghost commented 2 years ago

I want to load class Setting

//namespace :
public class Game {
   public class Setting{
   }
}
//dump.cs
//namespace :
public class Game.Setting{
}

I tried LoadClass("","Game.Setting") and LoadClass("","Game::Setting") but error

geokar2006 commented 2 years ago

At this time use LoadClass("","Setting") or LoadClass::GetLC_ByClassAndMethodName("", "Setting", "Any method name from your Settings class"). Maybe later I add a better way to get inner classes.

ghost commented 2 years ago

i got the solution, use / like this:

auto GSetting = LoadClass("","Game/Setting");