Fix invalid ItemInHandRenderer texture cache
This commit is contained in:
parent
5d57253d56
commit
f8bd6d380b
@ -833,6 +833,12 @@ void init_misc() {
|
||||
overwrite_calls((void *) Player_startUsingItem, (void *) Player_startUsingItem_injection);
|
||||
overwrite_calls((void *) Player_stopUsingItem, (void *) Player_stopUsingItem_injection);
|
||||
|
||||
// Fix invalid ItemInHandRenderer texture cache
|
||||
uchar cmp_r7_patch[] = {0x07, 0x00, 0x57, 0xe1}; // "cmp r7,r7"
|
||||
patch((void *) 0x4b938, cmp_r7_patch);
|
||||
uchar moveq_r3_true_patch[] = {0x01, 0x30, 0xa0, 0x03}; // "moveq r3,#0x1"
|
||||
patch((void *) 0x4b93c, moveq_r3_true_patch);
|
||||
|
||||
// Init C++ And Logging
|
||||
_init_misc_cpp();
|
||||
_init_misc_logging();
|
||||
|
@ -130,6 +130,7 @@ set(SRC
|
||||
src/app-platform/AppPlatform_linux.def
|
||||
src/app-platform/AppPlatform_readAssetFile_return_value.def
|
||||
src/tile/LeafTile.def
|
||||
src/tile/DoorTile.def
|
||||
src/tile/Tile.def
|
||||
src/tile/LiquidTile.def
|
||||
src/tile/TallGrass.def
|
||||
|
@ -1,3 +1,5 @@
|
||||
extends Entity;
|
||||
|
||||
vtable 0x10c718;
|
||||
|
||||
property int fuse = 0xd0;
|
||||
|
@ -1 +1,5 @@
|
||||
vtable 0x102e58;
|
||||
vtable-size 0x60;
|
||||
|
||||
virtual-method void attack(Player *player, Entity *target) = 0x44;
|
||||
virtual-method void releaseUsingItem(Player *player) = 0x5c;
|
||||
|
5
symbols/src/tile/DoorTile.def
Normal file
5
symbols/src/tile/DoorTile.def
Normal file
@ -0,0 +1,5 @@
|
||||
extends Tile;
|
||||
|
||||
vtable 0x111220;
|
||||
|
||||
static-method uint getCompositeData(LevelSource *level, int x, int y, int z) = 0xbde40;
|
Loading…
Reference in New Issue
Block a user