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
#include <idc.idc> | |
#define sym(addr, sym) symbolicateAddr(addr, sym) | |
static symbolicateAddr(addr, sym) { | |
MakeFunction(addr, BADADDR); | |
if(MakeNameEx(addr, sym, SN_NOWARN)) return; | |
auto i; | |
for(i = 0; i < 999; i++) if(MakeNameEx(addr, form("%s_%d", sym, i), SN_NOWARN)) return; | |
} |
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
static Item* newItem() { | |
Item* myItem = (Item*) ::operator new((std::size_t) 76); // allocate memory | |
Item::Item(myItem, 55); // call the MCPE Item constructor | |
Item::items[55] = myItem; // Add the item to MCPE's global item list | |
*((void***) myItem) = *((void***) Item::items[259]); // give it a normal item vtable, in this case we steal it from flint and steel | |
Item::setDescriptionId("myitem"); // give it a name | |
I18n::_strings["item.myitem.name"] = "My YOLO itemmm"; // register the name | |
myItem->maxStackSize = 30; // max stack of 30 lololol | |
return myItem; | |
} |
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
#pragma once | |
#include <dlfcn.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <stddef.h> | |
uintptr_t DynamicHookVirtual(void** vtable, char* mangled, int end, void* myfunc) { | |
int index = -1; |
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
#include <iostream> | |
#include <substrate.h> | |
#include <mach-o/dyld.h> | |
#include <string> | |
#include <stdbool.h> | |
#include <stddef.h> | |
#include <sstream> | |
#include <iomanip> | |
#include <vector> | |
#include <cstring> |
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
class Entity { | |
void** vtable; // 0 | |
SynchedEntityData data; // 4; 28 bytes | |
float x; // 32 | |
float y; // 36 | |
float z; // 40 | |
ChunkPos chunkPos; // 44; 8 bytes | |
int entityId; // 52 | |
float viewScale; // 56 | |
TileSource* region; // 60 |
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
bool TileTessellator::tessellateBrewingStandTileInWorld(BrewingStandTile* tile, int x, int y, int z, TileSource* region) { | |
Tessellator* tess = this->tessellator_inst; | |
// render the center blaze rod | |
setRenderBounds(AABB({0.4375, 0.0, 0.4375}, {0.5625, 0.875, 0.5625})); | |
tessellateBlockInWorld(tile, {x, y, z}); | |
// render the 3 blocks on the bottom | |
forcedUV = tile->getTextureUVCoordinateSet("brewing_stand_base", 0); | |
useForcedUV = true; |
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
#include <idc.idc> | |
static symbol(addr, sym) { | |
MakeFunction(addr, BADADDR); | |
if(MakeNameEx(addr, sym, SN_NOWARN)) return; | |
auto i; | |
for(i = 0; i < 999; i++) if(MakeNameEx(addr, form("%s_%d", sym, i), SN_NOWARN)) return; | |
} | |
static main() { |
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
#include <idc.idc> | |
static symbol(addr, sym) { | |
MakeFunction(addr, BADADDR); | |
if(MakeNameEx(addr, sym, SN_NOWARN)) return; | |
auto i; | |
for(i = 0; i < 999; i++) if(MakeNameEx(addr, form("%s_%d", sym, i), SN_NOWARN)) return; | |
} | |
static main() { |
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
I am back on Twitter :P |
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
I am back on Twitter :P |
OlderNewer