More symbols and better patch error message

This commit is contained in:
Bigjango13 2024-02-12 18:31:05 -05:00
parent e707102192
commit 53d1971ae0
3 changed files with 3 additions and 1 deletions

View File

@ -182,7 +182,7 @@ void _overwrite(const char *file, int line, void *start, void *target) {
// Patch Instruction
void _patch(const char *file, int line, void *start, unsigned char patch[4]) {
if (((uint32_t) start) % 4 != 0) {
ERR("Invalid Address");
ERR("Invalid Address: %p", start);
}
size_t page_size = sysconf(_SC_PAGESIZE);

View File

@ -32,6 +32,7 @@ property float pitch = 0x44;
property float old_yaw = 0x48;
property float old_pitch = 0x4c;
property AABB hitbox = 0x50;
property int fire_timer = 0xa0;
property int renderer_id = 0xa8;
property bool on_ground = 0xb2;
property bool freeze_physics = 0xb9;

View File

@ -14,6 +14,7 @@ virtual-method int getUseDuration(ItemInstance *item_instance) = 0x24;
virtual-method ItemInstance useTimeDepleted(ItemInstance *item_instance, Level *level, Player *player) = 0x28;
virtual-method int getDestorySpeed(ItemInstance *item_instance, Tile *tile) = 0x2c;
virtual-method ItemInstance *use(ItemInstance *item_instance, Level *level, Player *player) = 0x30;
virtual-method void hurtEnemy(ItemInstance *itemInstance, Mob *mob) = 0x44;
virtual-method bool mineBlock(ItemInstance *instance, int tile_id, int x, int y, int z) = 0x48;
// Not just enemy, but any entity
virtual-method void interactEnemy(ItemInstance *item_instance, Mob *mob) = 0x54;