You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
codm/ligma/ligma-cheat/bypass/bypass.h

30 lines
937 B

#pragma once
#include <dlfcn.h>
#include <mutex>
#include <android/log.h>
#include <sys/system_properties.h>
#include "../ligma.h"
#define HWID_VALUE "what do you call nuts on your chin? a dick down your throat you fucking retard!"
#define offset_emulator_check 0x000D7B4
#define offset_ischeat_packet 0x00128E0
#define offset_mshook_function 0x0010358
#define offset_fopen_got 0x23ECC
namespace ligma
{
namespace bypass
{
inline void* fopen_ptr = nullptr;
inline void* system_prop_get = nullptr;
inline void* loadbufferx = nullptr;
inline std::mutex fopen_mutex; // every shithook you make you will need a mutex.
inline std::mutex system_prop_mutex;
inline std::mutex loadbufferx_mutex;
void init();
FILE* fopen_hook(const char* path, const char* mode);
int system_property_hook(const char* name, char* value);
int loadbufferx_hook(void* L, const char* buff, size_t sz, const char* name, const char* mode);
}
}