From 16ebea9ed6a53174fe0b27946c3088a8b63689a0 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Tue, 2 Nov 2021 17:50:26 -0400 Subject: [PATCH] Even More Symbols --- CMakeLists.txt | 10 +++++----- symbols/include/symbols/minecraft.h | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ef87af9..05f1a3f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,6 +72,11 @@ if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) set(CMAKE_INSTALL_PREFIX "/" CACHE PATH "" FORCE) endif() +# Use LLD When Using Clang +if(CMAKE_C_COMPILER_ID STREQUAL "Clang") + add_link_options("-fuse-ld=lld") +endif() + # Buld LibPNG + ZLib + Download Minecraft: Pi Edition if(BUILD_ARM_COMPONENTS) add_subdirectory(dependencies) @@ -84,11 +89,6 @@ add_definitions(-D_GNU_SOURCE) set(CMAKE_C_STANDARD 99) set(CMAKE_CXX_STANDARD 11) -# Use LLD When Using Clang -if(CMAKE_C_COMPILER_ID STREQUAL "Clang") - add_link_options("-fuse-ld=lld") -endif() - # Specify Constants if(MCPI_SERVER_MODE) add_definitions(-DMCPI_SERVER_MODE) diff --git a/symbols/include/symbols/minecraft.h b/symbols/include/symbols/minecraft.h index 598bee2..59856fa 100644 --- a/symbols/include/symbols/minecraft.h +++ b/symbols/include/symbols/minecraft.h @@ -355,6 +355,9 @@ static LevelData_getSpawnMobs_t LevelData_getSpawnMobs = (LevelData_getSpawnMobs typedef void (*Level_saveLevelData_t)(unsigned char *level); static Level_saveLevelData_t Level_saveLevelData = (Level_saveLevelData_t) 0xa2e94; +typedef void (*Level_setTileAndData_t)(unsigned char *level, int32_t x, int32_t y, int32_t z, int32_t id, int32_t data); +static Level_setTileAndData_t Level_setTileAndData = (Level_setTileAndData_t) 0xa38b4; + static uint32_t Level_players_property_offset = 0x60; // std::vector // LevelRenderer