More symbols and better patch error message
This commit is contained in:
parent
6ac808919f
commit
5d57253d56
@ -132,7 +132,7 @@ static void safe_mprotect(void *addr, size_t len, int prot) {
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
// Get Current Permissions
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user