Modding il2cpp games by classes, methods, field names on Android.
ByNameModding is a library for modding il2cpp games by classes, methods, field names on Android. This edition is focused on working on Android with il2cpp. It includes everything you need for modding Unity games.
Requires C++20 minimum.
BNM can add your own class to game, it requires C++20 and above.
If you nest your class from MonoBehaviour (or other class with events) methods like Update
will work.
And it fully computable with AssetBundles!
For bundles need add your class to dlls that listed in ScriptingAssemblies.json.
Basically BNM add classes to Assembly-CSharp.dll
that always in this list.
If you want to use your own dll with bundles, add it to this file, but this will work only if you use BNM internally.
# TODO
CMakeLists.txt
add_subdirectory(path/to/ByNameModding EXCLUDE_FROM_ALL)
et_property(BNM_INCLUDE_DIRECTORIES TARGET BNM PROPERTY BNM_INCLUDE_DIRECTORIES)
...
arget_include_directories(
# Your lib name
PUBLIC
${BNM_INCLUDE_DIRECTORIES}
# ...
arget_link_libraries(
# Your lib name
PUBLIC
BNM
...
UNITY_VER
, include your string obfuscator and hooking software, uncomment BNM_DOTNET35
if the game uses .NET 3.5 in BNM_settings.hpp
UTF8-CPP used by il2cpp and by BNM too.
Open-hierarchy custom RTTI used to optimize memory usage
Dobby
ShadowHook
Substrate with And64InlineHook - do not support unhook