listerily / ModdedBE

Open source Minecraft: Bedrock Edition launcher for Android. Using EnderCore as Mod Engine, patching NMods to Minecraft.
GNU Lesser General Public License v2.1
51 stars 11 forks source link

NMods does not support arm64 #3

Closed listerily closed 3 years ago

listerily commented 3 years ago

Due to substrate doesn't support arm64,NMods does not support arm64 temporarily. But ModdedBE could still launch game.

timscriptov commented 3 years ago

Don't use substrate. Use https://github.com/iqiyi/xHook

timscriptov commented 3 years ago

It work for Minecraft 1.16 arm 32 and 64...

listerily commented 3 years ago

It work for Minecraft 1.16 arm 32 and 64... I'll have a try.

TripleCamera commented 3 years ago

It work for Minecraft 1.16 arm 32 and 64... I'll have a try.

It seems like PLT hook is designed for hooking cross-library calls???

Lamfi commented 3 years ago

use xHook it works much better than Substrate and work with ARM64. And has its own debug in LogCat usage example: void (onDimension)(void); void onDimension_hook(void* a){

return normalTick(a); } //Load lib xhook_register("./libminecraftpe\.so$","_ZN13MinecraftGame18onDimensionChangedEv",(void) &onDimension_hook, (void**) &onDimension); xhook_refresh(1); xhook_enable_debug(1); //Debug to logcat with tag xhook