temporarily stub chatting
This commit is contained in:
parent
5867993997
commit
6f39788088
@ -40,6 +40,8 @@ extern "C" {
|
||||
|
||||
}
|
||||
|
||||
MinecraftEventing* g_eventingInstance = nullptr;
|
||||
|
||||
void stubFunc() {}
|
||||
|
||||
void detachFromJavaStub() {
|
||||
@ -59,6 +61,10 @@ int getGameTypeStub() {
|
||||
return ServerProperties::instance().getInt("gamemode", 0);
|
||||
}
|
||||
|
||||
void handleTextPacketStub() {
|
||||
std::cout << "chat message\n";
|
||||
}
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
@ -136,6 +142,9 @@ int main(int argc, char *argv[]) {
|
||||
patchOff = (unsigned int) hybris_dlsym(handle, "_ZNK9LevelData11getGameTypeEv");
|
||||
patchCallInstruction((void*) patchOff, (void*) &getGameTypeStub, true);
|
||||
|
||||
patchOff = (unsigned int) hybris_dlsym(handle, "_ZN20ServerNetworkHandler6handleERK17NetworkIdentifierRK10TextPacket");
|
||||
patchCallInstruction((void*) patchOff, (void*) &handleTextPacketStub, true);
|
||||
|
||||
mcpe::string::empty = (mcpe::string*) hybris_dlsym(handle, "_ZN4Util12EMPTY_STRINGE");
|
||||
|
||||
std::cout << "patches applied!\n";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user