More symbols and better patch error message
This commit is contained in:
parent
e707102192
commit
53d1971ae0
|
@ -182,7 +182,7 @@ void _overwrite(const char *file, int line, void *start, void *target) {
|
||||||
// Patch Instruction
|
// Patch Instruction
|
||||||
void _patch(const char *file, int line, void *start, unsigned char patch[4]) {
|
void _patch(const char *file, int line, void *start, unsigned char patch[4]) {
|
||||||
if (((uint32_t) start) % 4 != 0) {
|
if (((uint32_t) start) % 4 != 0) {
|
||||||
ERR("Invalid Address");
|
ERR("Invalid Address: %p", start);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t page_size = sysconf(_SC_PAGESIZE);
|
size_t page_size = sysconf(_SC_PAGESIZE);
|
||||||
|
|
|
@ -32,6 +32,7 @@ property float pitch = 0x44;
|
||||||
property float old_yaw = 0x48;
|
property float old_yaw = 0x48;
|
||||||
property float old_pitch = 0x4c;
|
property float old_pitch = 0x4c;
|
||||||
property AABB hitbox = 0x50;
|
property AABB hitbox = 0x50;
|
||||||
|
property int fire_timer = 0xa0;
|
||||||
property int renderer_id = 0xa8;
|
property int renderer_id = 0xa8;
|
||||||
property bool on_ground = 0xb2;
|
property bool on_ground = 0xb2;
|
||||||
property bool freeze_physics = 0xb9;
|
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 ItemInstance useTimeDepleted(ItemInstance *item_instance, Level *level, Player *player) = 0x28;
|
||||||
virtual-method int getDestorySpeed(ItemInstance *item_instance, Tile *tile) = 0x2c;
|
virtual-method int getDestorySpeed(ItemInstance *item_instance, Tile *tile) = 0x2c;
|
||||||
virtual-method ItemInstance *use(ItemInstance *item_instance, Level *level, Player *player) = 0x30;
|
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;
|
virtual-method bool mineBlock(ItemInstance *instance, int tile_id, int x, int y, int z) = 0x48;
|
||||||
// Not just enemy, but any entity
|
// Not just enemy, but any entity
|
||||||
virtual-method void interactEnemy(ItemInstance *item_instance, Mob *mob) = 0x54;
|
virtual-method void interactEnemy(ItemInstance *item_instance, Mob *mob) = 0x54;
|
||||||
|
|
Loading…
Reference in New Issue