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.
30 lines
937 B
30 lines
937 B
4 years ago
|
#pragma once
|
||
|
#include <dlfcn.h>
|
||
|
#include <mutex>
|
||
|
#include <android/log.h>
|
||
|
#include <sys/system_properties.h>
|
||
4 years ago
|
#include "../ligma.h"
|
||
4 years ago
|
|
||
|
#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
|
||
4 years ago
|
#define offset_fopen_got 0x23ECC
|
||
4 years ago
|
|
||
|
namespace ligma
|
||
|
{
|
||
|
namespace bypass
|
||
|
{
|
||
|
inline void* fopen_ptr = nullptr;
|
||
|
inline void* system_prop_get = nullptr;
|
||
4 years ago
|
inline void* loadbufferx = nullptr;
|
||
4 years ago
|
inline std::mutex fopen_mutex; // every shithook you make you will need a mutex.
|
||
|
inline std::mutex system_prop_mutex;
|
||
4 years ago
|
inline std::mutex loadbufferx_mutex;
|
||
4 years ago
|
|
||
|
void init();
|
||
|
FILE* fopen_hook(const char* path, const char* mode);
|
||
|
int system_property_hook(const char* name, char* value);
|
||
4 years ago
|
int loadbufferx_hook(void* L, const char* buff, size_t sz, const char* name, const char* mode);
|
||
4 years ago
|
}
|
||
|
}
|