Created
November 16, 2015 21:00
-
-
Save Khristian-kun/dbde51c4b3650d2d56f5 to your computer and use it in GitHub Desktop.
Override Lava Bucket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Override Lava Bucket | |
void (*_Item$initItems)(); | |
void Item$initItems() { | |
void** vtable = *((void***) Item::mItems[325]); | |
vtable[3] = (void*) &_myGetItem; | |
const TextureUVCoordinateSet& &_myGetIcon("lava_bucket"); | |
_Item$initItems(); | |
} | |
MSHookFunction((void*) &Item::initItems, (void*) &Item$initItems, (void**) &_Item$initItems); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment