aboutsummaryrefslogtreecommitdiffstats
path: root/src/vm.h
diff options
context:
space:
mode:
authorOrfeas <38209077+0xfea5@users.noreply.github.com>2024-04-21 16:27:55 +0300
committerOrfeas <38209077+0xfea5@users.noreply.github.com>2024-04-21 16:32:47 +0300
commitc79bbdb0448501987c0c16c2877c780143156d1e (patch)
treeff518148959a27e0efa655b3e40c4efea074a383 /src/vm.h
parentWrite other process' memory (diff)
downloadlinux-game-trainer-c79bbdb0448501987c0c16c2877c780143156d1e.tar.gz
linux-game-trainer-c79bbdb0448501987c0c16c2877c780143156d1e.zip
Changes in trainer interface, bug fixes & helper scripts
Diffstat (limited to 'src/vm.h')
-rw-r--r--src/vm.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/vm.h b/src/vm.h
index 3f3cc09..9164c57 100644
--- a/src/vm.h
+++ b/src/vm.h
@@ -21,9 +21,17 @@ typedef struct MemscanResult {
21 struct MemscanResult *next; 21 struct MemscanResult *next;
22} MemscanResult; 22} MemscanResult;
23 23
24typedef struct Bytes {
25 uint8_t *data;
26 size_t len;
27} Bytes;
28
24VMMapping* parse_vmmap (int pid); 29VMMapping* parse_vmmap (int pid);
25 30
26MemscanResult* memscan(int pid, uint8_t *byte_seq, uint64_t byte_seq_len); 31MemscanResult* memscan(int pid, Bytes aob);
32
33void memwrite(int pid, void *address, Bytes aob);
34
35Bytes memread(int pid, void *address, size_t nbytes);
27 36
28void memwrite(int pid, void *address, uint8_t *data, size_t data_len);
29#endif // _VM_H_ 37#endif // _VM_H_