diff --git a/src/main.cpp b/src/main.cpp index b54b3d12..ba6a2bd8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,6 +36,8 @@ static std::unique_ptr appPlatform; +static size_t base; + void printVersionInfo(); int main(int argc, char *argv[]) { @@ -96,6 +98,7 @@ int main(int argc, char *argv[]) { void* handle = MinecraftUtils::loadMinecraftLib(); Log::info("Launcher", "Loaded Minecraft library"); Log::debug("Launcher", "Minecraft is at offset 0x%x", MinecraftUtils::getLibraryBase(handle)); + base = MinecraftUtils::getLibraryBase(handle); Log::trace("Launcher", "Initializing vtables"); MinecraftUtils::initSymbolBindings(handle); diff --git a/src/tts_patch.cpp b/src/tts_patch.cpp index 92a7f647..b9c97669 100644 --- a/src/tts_patch.cpp +++ b/src/tts_patch.cpp @@ -2,11 +2,12 @@ #include #include +#include void TTSPatch::install(void* handle) { if (!MinecraftVersion::isAtLeast(1, 8)) return; - void* sym = minecraft_dlsym(handle, "_ZN18TextToSpeechSystem15createTTSClientEb"); + void* sym = hybris_dlsym(handle, "_ZN26TextToSpeechSystem_android16_createTTSClientEv"); PatchUtils::patchCallInstruction(sym, (void*) &TTSPatch::createTTSClient, true); }