Skip to content

Instantly share code, notes, and snippets.

View LGLTeam's full-sized avatar

Menu Modder LGLTeam

View GitHub Profile
@LGLTeam
LGLTeam / android-read-write-file.cpp
Created April 19, 2021 13:45
Reading and writing text file via c++ for Android. No root
#include <string.h>
#include <cstring>
#include <fstream>
#include <iostream>
std::string dir = "/data/data/uk.lgl.modmenu/cache/imei";
std::string buf = "whatever";
std::ifstream myfile(dir);
if (!myfile.is_open()) {
std::ofstream os(dir.c_str(), std::ios::trunc);
@LGLTeam
LGLTeam / main.cpp
Created March 18, 2021 15:32
Free Fire Source 1 (Mar 2020)
/**********************************
HOOK IL2CPP
***********************************/
void* (*GetHeadTF)(void* player) = (void*(*)(void*))getRealOffset(0xAE5868);
void* (*GetHipTF)(void* player) = (void*(*)(void*))getRealOffset(0xAE5994);