Skip to content

Commit 53e2e53

Browse files
Update README.md
1 parent b6f778f commit 53e2e53

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ If you encounter any non-working functions, please open an issue and report it.
2121

2222
* Date : 2023/06/02
2323
* Author : **__Abdul Moez__**
24-
* Version : 0.1
24+
* Version : 0.2 (Bug Fixed version)
2525
* Study : UnderGraduate in GCU Lahore, Pakistan
2626
* Repository : https://github.com/Anonym0usWork1221/C-Android-Memory-Tool
2727
* Documentation: Starts From Below
@@ -35,40 +35,39 @@ The sample code provided demonstrates the usage of the memory tool. Let's go thr
3535
#include <iostream>
3636
#include "MemoryTools.h"
3737

38-
int main(int argc, char *argv[]) {
39-
initXMemoryTools(
40-
/*process name*/
41-
"com.tencent.ig",
42-
/*mode root/no root*/
43-
MODE_ROOT
44-
/*MODE_NO_ROOT - for no root*/
45-
);
38+
int main(int arc, char argv[]) {
39+
/* 1. Package Name of the game
40+
2. ROOT_MODE (tells you are using rooted device (not reooted device not implimented yet))
41+
*/
42+
char game_package[] = "com.tencent.ig";
43+
MemoryTool memory_tool;
44+
memory_tool.initXMemoryTools(game_package, MODE_ROOT);
4645
```
4746
4847
The code includes necessary headers and initializes the memory tool by calling initXMemoryTools(). It takes two parameters: the process name (in this case, "com.tencent.ig") and the mode ("MODE_ROOT" for rooted devices).
4948
5049
```cpp
51-
SetSearchRange(ALL);
50+
memory_tool.SetSearchRange(ALL);
5251
```
5352
The SetSearchRange() function sets the search range for memory operations. In this case, it is set to "ALL," which means searching in all memory ranges.
5453

5554
```cpp
56-
MemorySearch("1", TYPE_BYTE);
55+
memory_tool.MemorySearch("1", TYPE_BYTE);
5756
```
5857
The MemorySearch() function is used to search for a specific value in memory. In this example, it searches for the value "1" of type TYPE_BYTE.
5958

6059
```cpp
61-
MemoryOffset("2", 2,/*offset*/ TYPE_BYTE);
60+
memory_tool.MemoryOffset("2", 2, /*offset*/ TYPE_BYTE);
6261
```
6362
The MemoryOffset() function is used to search for a specific value at an offset from a base address. It searches for the value "2" of type TYPE_BYTE with an offset of 2.
6463

6564
```cpp
66-
MemoryWrite("0", 2,/*offset*/ TYPE_BYTE);
65+
memory_tool.MemoryWrite("0", 2, /*offset*/ TYPE_BYTE);
6766
```
6867
The MemoryWrite() function is used to write a value to a specific memory address. In this example, it writes the value "0" of type TYPE_BYTE with an offset of 2.
6968

7069
```cpp
71-
ClearResults();
70+
memory_tool.ClearResults();
7271
```
7372
The ClearResults() function clears the linked list of results and frees up memory.
7473
```cpp

0 commit comments

Comments
 (0)